Szerző Téma: Error 029  (Megtekintve 1000 alkalommal)

Error 029
« Dátum: 2015. Június 23. - 18:50:05 »
0
\\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!
« Utoljára szerkesztve: 2015. Június 24. - 18:00:21 írta мαятιη »

Error 029
« Válasz #1 Dátum: 2015. Június 23. - 19:12:25 »
0
Melyik sor az pontosan?

Error 029
« Válasz #2 Dátum: 2015. Június 23. - 19:15:48 »
0
Ez az a sor:
 
(APlayerData[playerid][PlayerFrozen]--);

Error 029
« Válasz #3 Dátum: 2015. Június 23. - 19:33:20 »
0
[pawn](APlayerData[playerid][PlayerFrozen] -= 1);[/pawn]

Nem elérhető divkn

  • 3259
    • Profil megtekintése
Error 029
« Válasz #4 Dátum: 2015. Június 23. - 20:55:13 »
0
Nincs zárójelre szükség változó értékének változtatásához.
 
APlayerData[playerid][PlayerFrozen]--;

Error 029
« Válasz #5 Dátum: 2015. Június 24. - 10:06:33 »
0
Köszönöm a segítséget!  :D

Nem elérhető Flash

  • 5726
  • (っ◕‿◕)っ
    • Profil megtekintése
Error 029
« Válasz #6 Dátum: 2015. Június 24. - 10:11:36 »
0
[mod]Máskor ezt a megfelelő kiemelt témába írd![/mod]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal