1. Simple SetPlayerHealth not working || 2. Unknown 'tag mismatch' warning.
#3

You must use SetTimerEx to use 'playerid' in the timer.
pawn Код:
public OnPlayerSpawn(playerid)
{
 SetTimerEx("LH", 10000, true, "d", playerid);
 return 1;
}

forward LH(playerid);
public LH(playerid)
{
 new Float:hp[MAX_PLAYERS];
 GetPlayerHealth(playerid, hp[playerid]);
 SetPlayerHealth(playerid, hp[playerid]-1);
 return 1;
}
2: I think you must use symbol " ' ".
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)