\\pawno\\include\\PPC_Common.inc(175) : error 029: invalid expression, assumed zero
\\pawno\\include\\PPC_Common.inc(175) : error 029: invalid expression, assumed zero
\\pawno\\include\\PPC_Common.inc(175) : error 029: invalid expression, assumed zero
\\pawno\\include\\PPC_Common.inc(175) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
// This timer informs the player how long he will be frozen
forward Player_FreezeTimer(playerid);
public Player_FreezeTimer(playerid)
{
// Setup local variables
new Msg[128];
// Decrease the remaining time this player will be frozen
(APlayerData[playerid][PlayerFrozen]--);
// Check if the player is allowed to move again
if (APlayerData[playerid][PlayerFrozen] >= 1)
{
// Construct the message to inform the player how long he stays frozen
if (APlayerData[playerid][PlayerFrozen] >= 60)
format(Msg, 128, \"Frozen for %i minutes\", APlayerData[playerid][PlayerFrozen] / 60);
else
format(Msg, 128, \"Frozen for %i seconds\", APlayerData[playerid][PlayerFrozen]);
// Display the message to inform the player how long he stays frozen
GameTextForPlayer(playerid, Msg, 1000, 4);
}
else { // The timer has run out, so allow his to move again
TogglePlayerControllable(playerid, 1);
KillTimer(FreezeTimer[playerid]);
}
}
Itt elakadtam segítség kellene!