Some errors
#1

I get those errors:
Код:
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
When i add this:
Код:
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;
}
Need fix plz, Thx
Reply


Messages In This Thread
Some errors - by viddo - 20.03.2012, 12:18
Re: Some errors - by mineralo - 20.03.2012, 12:22
Re: Some errors - by Reklez - 20.03.2012, 12:23
Re: Some errors - by Bogdan1992 - 20.03.2012, 12:24
Re: Some errors - by mineralo - 20.03.2012, 12:26
Re: Some errors - by viddo - 20.03.2012, 17:30
Re: Some errors - by Bogdan1992 - 20.03.2012, 17:32
Re: Some errors - by viddo - 20.03.2012, 17:57
Re: Some errors - by Bogdan1992 - 20.03.2012, 18:47
Re: Some errors - by Skribblez - 20.03.2012, 18:50

Forum Jump:


Users browsing this thread: 1 Guest(s)