20.03.2012, 12:18
I get those errors:
When i add this:
Need fix plz, Thx
Код:
p.pwn(19989) : error 017: undefined symbol "Health" C:\Users\Viddo\Desktop\LARP 4.0\LARP 4.0 D\gamemodes\larp.pwn(19991) : error 076: syntax error in the expression, or invalid function call C:\Users\Viddo\Desktop\LARP 4.0\LARP 4.0 D\gamemodes\larp.pwn(19995) : warning 235: public function lacks forward declaration (symbol "hptimer") C:\Users\Viddo\Desktop\LARP 4.0\LARP 4.0 D\gamemodes\larp.pwn(19997) : error 017: undefined symbol "Health" C:\Users\Viddo\Desktop\LARP 4.0\LARP 4.0 D\gamemodes\larp.pwn(19999) : error 010: invalid function or declaration
Код:
public CheckHealth(playerid) { new Float:health; GetPlayerHealth(playerid,health); if(Health < 20) { hptimer = SetTimer("losehp",1000,true); } return 1; } public hptimer(playerid) { SetPlayerHealth(playerid, Health -5); //player loses 5hp each time the timer is called. } return 1; }