Code:
for(var/mob/M in world)
if(M.in_team)
if(M.teamid == src.mob.teamid)
Problem description:
login.dm:559:error: M.in_team: undefined var
login.dm:560:error: M.teamid: undefined var
T.T
ID:139639
![]() Oct 15 2010, 4:24 pm
|
|
Okay u.u im a new coder and i need us help plz T.T
Code: for(var/mob/M in world) Problem description: login.dm:559:error: M.in_team: undefined var login.dm:560:error: M.teamid: undefined var T.T |
For example if you are using code:
but if u are using it without defining the var HP, you will absolutely get the error, HP, undefined var.
You need to define it to get it work. Use this code to define a var, for example, let's take HP.
By this way, your HP var is defined and you can now use it, in the same way you need to define those team vars like the way you want.
Enjoy...