21.01.2011, 19:19
Hi all,i create this functions only for VIP players,to get every minute +5 hp to their health:
I created timer,but what's wrong?
I get tons of errors.
pawn Код:
forward VIPHP();
public VIPHP()
{
for (new i=0;i<MAX_PLAYERS; i++)
{
if(PlayerVip[playerid] == 1)
{
new Float:health;
GetPlayerHealth(i, health);
SetPlayerHealth(i, health +5);
}
return 1;
}
I get tons of errors.