03.04.2013, 14:55
Код:
C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(51) : error 020: invalid symbol name "" C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(346) : error 017: undefined symbol "CreateDynamicCP" C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(349) : error 022: must be lvalue (non-constant) C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1109) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterDynamicCP") C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1119) : error 029: invalid expression, assumed zero C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1119) : error 029: invalid expression, assumed zero C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1119) : warning 215: expression has no effect C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1119) : error 001: expected token: ";", but found "]" C:\DOCUME~1\cla\Desktop\SAMP\SAMP03~1\GAMEMO~1\Malta.pwn(1119) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 7 Errors.
Код:
public OnPlayerEnterDynamicCP(playerid, checkpointid) { if(checkpointid == CP[Zone]) { if(tCheck[Zone] == gTeam[playerid]) return SendClientMessage(playerid, COLOR_RED,"This zone is already captured by your team"); if(UnderAttack[Zone] == 1) return SendClientMessage(playerid, COLOR_RED,"This zone is already being taken over!"); if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED,"ERROR: You cannot capture while in vehicle!"); UnderAttack[Zone] = 1; timer[playerid][Zone] = SetTimerEx("SetZone",25000,false,"i", playerid); ApplyAnimation(playerid, "DEALER", "DEALER_DEAL", 4.0,0,0,0,0,0); GangZoneFlashForAll(Zone[Zone],COLOR_RED); //1119 SendClientMessageToAll(GREEN, "Zone is being taken over"); zDefine[playerid] = Zone; retiurn 1; }
Код:
CP[Zone] = CreateDynamicCP(-552.5542,2593.9897,53.9348); //346 CapZone[Zone] = GangZoneCreate(-611.2991,2643.4680,-499.0586,2532.8008); Zone = GangZoneCreate(974.9659,979.9814,1177.8164,1172.6105); //349