need help with lock
#1

i put this script

Код:
 	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;
	}
and it gives me these errors

Код:
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.
what should i do?
Reply


Messages In This Thread
need help with lock - by oreniko - 16.04.2009, 09:50
Re: need help with lock - by 56avenue - 16.04.2009, 09:52
Re: need help with lock - by OmeRinG - 16.04.2009, 10:03
Re: need help with lock - by MenaceX^ - 16.04.2009, 10:10
Re: need help with lock - by OmeRinG - 16.04.2009, 10:14
Re: need help with lock - by Weirdosport - 16.04.2009, 11:02

Forum Jump:


Users browsing this thread: 1 Guest(s)