ID:177039
 
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)
And where is the error?
Delita12345 wrote:
Statpanel("Protocols")
stat("X-factor",health)

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!