21.01.2011, 19:20
Well post your errors.
EDIT: you forgot to close your function..
Also, there is no "playerid" in your function. Look what I did, and retype your function calling playerid aswell.
EDIT: you forgot to close your function..
pawn Код:
forward VIPHP(playerid);
public VIPHP(playerid)
{
for (new i=0;i<MAX_PLAYERS; i++)
{
if(PlayerVip[playerid] == 1)
{
new Float:health;
GetPlayerHealth(i, health);
SetPlayerHealth(i, health +5);
}
}
return 1;
}