05.05.2010, 16:26
Quote:
Originally Posted by 0ne
maybe cause there isn't anything that defines cpid?
|
If I do
Quote:
public OnPlayerEnterStreamedCheckpoint(playerid, streamid) { new cpid = CheckpointCheck(playerid); if (cpid == CPS1) { GameTextForPlayer(playerid,"~w~you earned ~r~$1000~w~.",1000,4); GivePlayerMoney(playerid, 1000); TogglePlayerCheckpoint(playerid, CPS1, bool:0); } return 1; } |
Quote:
\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse \humanvszombies\zm.pwn(291) : warning 219: local variable "cpid" shadows a variable at a preceding level \humanvszombies\zm.pwn(291) : error 029: invalid expression, assumed zero \humanvszombies\zm.pwn(291) : error 029: invalid expression, assumed zero \humanvszombies\zm.pwn(293) : warning 225: unreachable code \humanvszombies\zm.pwn(293) : warning 213: tag mismatch \humanvszombies\zm.pwn(291) : warning 204: symbol is assigned a value that is never used: "cpid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. |