05.08.2012, 13:02
Код:
if(strcmp(cmdtext, "/dropcar", true) == 0) { if(IsPlayerInRangeOfPoint(playerid, 7.0,2699.4993,-2226.0491,13.5501))//change this!!! { SendClientMessage(playerid, 0xFFFFFFFF, "You Are Not At The Export Point At LS Docks!"); } return 1; new currentveh; currentveh = GetPlayerVehicleID(playerid); DestroyVehcile(Currentveh); SendClientMessage(playerid,0x33AA33AA, "You Have Earned $5000 For Exporting The Car"); GivePlayerMoney(playerid, 5000); return 1; }
Код:
C:\Documents and Settings\Owner\Desktop\Samp Stuff 2\my scripting\The Server\gamemodes\LS_DM.pwn(266) : warning 225: unreachable code C:\Documents and Settings\Owner\Desktop\Samp Stuff 2\my scripting\The Server\gamemodes\LS_DM.pwn(268) : error 017: undefined symbol "DestroyVehcile" C:\Documents and Settings\Owner\Desktop\Samp Stuff 2\my scripting\The Server\gamemodes\LS_DM.pwn(267) : warning 204: symbol is assigned a value that is never used: "currentveh" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.