I keep getting a "bad argument definition" error with this code:
world
mob = /mob/spybot/snaptrax
turf = /turf/floor
turf/floor
icon = 'Floor.dmi'
mob/spybot/snaptrax
icon = 'Snaptrax.dmi'
icon_state = "Snaptrax"
var
health = 50
Login()
usr << sound('Music.WAV',1)
return..()
Statpanel("Protocols")
stat("X-factor",health)
ID:177039
Nov 15 2002, 4:36 pm (Edited on Nov 15 2002, 4:56 pm)
|
|
Nov 15 2002, 4:56 pm
|
|
And where is the error?
|
Delita12345 wrote:
Statpanel("Protocols") Dream Maker thinks you're trying to make a proc called Statpanel(), which takes an argument "Protocols". However, "Protocols" is a constant (as opposed to a variable, <code>var</code>), so you get a "bad argument definition" error. To make a statpanel: <code>Stat() //In your case, this should be defined under mob/spybot/snaptrax statpanel("Protocols") stat("X-factor",health) </code> |
In response to Crispy
|
|
Thnx alot!
|