/lock BUG - NEED HELP!
#1

Код:
if (strcmp(cmdtext, "/lock", true)==0)
	{
		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;
	}
These are the error's I'm getting: (Anyone know how to fix)?

Код:
C:\Users\matthew\Desktop\New Generation LS;RP 2012 Server\gamemodes\larp.pwn(42251) : error 017: undefined symbol "State"
C:\Users\matthew\Desktop\New Generation LS;RP 2012 Server\gamemodes\larp.pwn(42252) : error 017: undefined symbol "State"
C:\Users\matthew\Desktop\New Generation LS;RP 2012 Server\gamemodes\larp.pwn(42266) : error 017: undefined symbol "X"
C:\Users\matthew\Desktop\New Generation LS;RP 2012 Server\gamemodes\larp.pwn(42267) : error 017: undefined symbol "X"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Reply


Messages In This Thread
/lock BUG - NEED HELP! - by UnknownGamer - 11.07.2012, 21:18
Re: /lock BUG - NEED HELP! - by Larceny - 11.07.2012, 21:20
Re: /lock BUG - NEED HELP! - by Roko_foko - 11.07.2012, 21:20
Re: /lock BUG - NEED HELP! - by UnknownGamer - 11.07.2012, 21:29
Re: /lock BUG - NEED HELP! - by Larceny - 11.07.2012, 21:32
Re: /lock BUG - NEED HELP! - by UnknownGamer - 11.07.2012, 21:33
Re: /lock BUG - NEED HELP! - by Larceny - 11.07.2012, 21:35
Re: /lock BUG - NEED HELP! - by UnknownGamer - 11.07.2012, 21:39
Re: /lock BUG - NEED HELP! - by Larceny - 11.07.2012, 22:09

Forum Jump:


Users browsing this thread: 1 Guest(s)