16.04.2009, 09:50
i put this script
and it gives me these errors
what should i do?
Код:
if (strcmp(cmdtext, "/lock", true)==0) { new State; if(IsPlayerInAnyVehicle(playerid)) { State=GetPlayerState(playerid); if(State!=PLAYER_STATE_DRIVER) { SendClientMessage(playerid,COLOR_GREY,"You can only lock the doors as the driver."); return 1; } new i; for(i=0;i<MAX_PLAYERS;i++) { if(i != playerid) { SetVehicleParamsForPlayer(GetPlayerVehicleID(playerid),i, 0, 1); } } SendClientMessage(playerid, COLOR_GREY, "Vehicle locked!"); GetPlayerPos(playerid,X,Y,Z); PlayerPlaySound(playerid,1056,X,Y,Z); } else { SendClientMessage(playerid, COLOR_GREY, "You're not in a vehicle!"); } return 1; }
Код:
C:\Documents and Settings\a\Desktop\cstest.pwn(2439) : warning 217: loose indentation C:\Documents and Settings\a\Desktop\cstest.pwn(2448) : error 017: undefined symbol "X" C:\Documents and Settings\a\Desktop\cstest.pwn(2449) : error 017: undefined symbol "X" C:\Documents and Settings\a\Desktop\cstest.pwn(2451) : warning 217: loose indentation C:\Documents and Settings\a\Desktop\cstest.pwn(2455) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.