C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2894) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterDynamicCP") C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2898) : error 017: undefined symbol "HouseCheckpoint" C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2898) : warning 215: expression has no effect C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2898) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2898) : error 029: invalid expression, assumed zero C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2898) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
} public OnPlayerEnterDynamicCP(playerid, checkpointid) { for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseCheckpoint[h] == checkpointid) { new string[128]; if(HouseInfo[h][hOwned] == 1) { format(string, sizeof(string), "You are standing on %s's porch!", HouseInfo[h][hOwner]); SendClientMessage(playerid, COLOR_GREEN, string); } else { format(string, sizeof(string), "House for sale, Price: $%d", HouseInfo[h][hValue]); SendClientMessage(playerid, COLOR_GREEN, string); }
for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { for(new h = 0; h < sizeof(HouseInfo); h++) { if(HouseInfo[h][hOwned] == 0) { if(HouseInfo[h][hSetted] == 1) { if(IsPlayerInRangeOfPoint(i, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez])) { SetPlayerCheckpoint(i, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 5.0); } } }
C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 894) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterDynamicCP") C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 89 : error 017: undefined symbol "HouseCheckpoint" C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 89 : warning 215: expression has no effect C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 89 : error 001: expected token: ";", but found "]" C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 89 : error 029: invalid expression, assumed zero C:\Documents and Settings\Jaber\Bureau\azeaze\gamemodes\penls.pwn(2 89 : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
forward OnPlayerEnterDynamicCP(playerid, etc...);
new HouseCheckpoint[etc...]