ID:144664
 
Code:
turf
Scorpion
icon = 'scorpion.PNG'
Click()
usr.loc=locate(1,1,3)
usr.create_character()


Problem description:


What is wrong this this. I am getting this error

Fighter icons\Character icons.dm:6:error:usr.create_character:undefined proc
Dbgtsuperfreak wrote:
Code:
 turf
Scorpion
icon = 'scorpion.PNG'
Click()
usr.loc=locate(1,1,3)
usr.create_character()


Problem description:


What is wrong this this. I am getting this error

Fighter icons\Character icons.dm:6:error:usr.create_character:undefined proc

The error youre getting means that
1) The error is located in the code file "icons", on line 6

and

2) You haven't correctly made create_character()

make sure its:
mob/proc/create_character()


The coding is incredibly CaSe SeNsItIvE by the way.
In response to CuriousNeptune
obj
Radar
name="Dragonball Radar"
icon='dbs.dmi'
icon_state="radar"
upgradelevel="One"
Click()
set name="Dragon Radar On/Off"
if(usr.radaron)
usr<<"<font size=1>You turn the radar off.</font>" //text to the user
usr.radaron=0 //switches a variable, not important to you
usr.radaronoff() //runs a process (see below)
usr.Update_Radar() //runs a process (see below)
return
else
usr<<"<font size=1>You turn the radar on.</font>" //text to the user
usr.radaron=1 //Not important to you
usr.radaronoff() //runs a process (see below)
usr.Update_Radar() //runs a process (see below)
return

//------------------------------------------RADAR PROC-------------------------------------------------------
mob/proc //notice how i dont have to keep writing "mob/proc" by doing it in this format
radaronoff() //first process ran
if(src.radaron) //if the users radar is on...
for(var/obj/radardisplay/R in src.client.screen) //for every object thats a display on the client's/user's screen...
R.invisibility=0 //make them visable
else
for(var/obj/radardisplay/R in src.client.screen) //same as above but in reverse
R.invisibility=1


Update_Radar() // this is the second process. not all here, just included it to show you
for(var/client/C)
var/icon/V = icon('dbs.dmi',"display1") // Create an icon to draw on
var/icon/U = icon('dbs.dmi',"display2") // Create an icon to draw on
var/icon/T = icon('dbs.dmi',"display3") // Create an icon to draw on
var/icon/S = icon('dbs.dmi',"display4") // Create an icon to draw on


Here. I've included what's basically my Dragonball Radar code to show you how actions (clicking stuff/using verbs) should link in with processes.
In response to CuriousNeptune
i fixed it but i was wondering if u could help me some more. do u have msn?
i no it happening to me to i click build map and it says it cant becaues of a error. but i dont no what it is.
turf
Scorpion
icon = 'scorpion.PNG'
Click()
usr.loc=locate(1,1,3)
usr.create_character()

mob
proc
create_character()
if(usr.byond_version == "blah blah blah")
usr<<"You are up to date on your byond version you get to see a better title page!"
usr.loc=locate(1,1,1)
else
usr<<"Update byond to see the better title screen!"
usr.loc=locate(1,1,1)


I just thought of the byond version thing on the spot i wanted to give dbgtsuperfreak a new idea lol