Pawno Crashes :S
#9

Try putting new CarCheck = GetPlayerVehicleID(playerid); inside of your if statements(or in your functions) and not at the top... as such

Код:
	if(strcmp(cmd, "/whatever", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
               new CarCheck = GetPlayerVehicleID(playerid);
               if(IsAWhateverCar(CarCheck))
			{
                             then do whatever
                        }
            }
            return 1;
        }
tbh I haven't seen a script look for the vehicleid on the top... it probably keeps searching for the vehicleid throughout the whole script... but like I said it should work inside of the if statements
Reply


Messages In This Thread
Pawno Crashes :S - by Skillet_Fan - 13.04.2011, 10:55
Re: Pawno Crashes :S - by blazee14 - 13.04.2011, 10:57
Re: Pawno Crashes :S - by Kyle - 13.04.2011, 10:58
Re: Pawno Crashes :S - by Kyle - 13.04.2011, 11:00
Re: Pawno Crashes :S - by blazee14 - 13.04.2011, 11:11
Re: Pawno Crashes :S - by Skillet_Fan - 13.04.2011, 11:41
Re: Pawno Crashes :S - by ronnie3148 - 13.04.2011, 11:52
Re: Pawno Crashes :S - by Skillet_Fan - 13.04.2011, 12:12
Re: Pawno Crashes :S - by ronnie3148 - 13.04.2011, 12:19
Re: Pawno Crashes :S - by Skillet_Fan - 13.04.2011, 13:44

Forum Jump:


Users browsing this thread: 1 Guest(s)