Problem with PLAYER_STATE_DRIVER
#1

Hello,

i have a big problem with PLAYER_STATE_DRIVER.

When im testing it local, it would work perfectly. But when i test it on my root-linux server, it wont work. Why?
Did anybody have such a problem?

Here is a code for example, that works on my local server, but not on my root server (the first code under PLAYER_STATE_DRIVER works without problems):

Код:
	if(newstate == PLAYER_STATE_DRIVER) //buggy dont finnish
	{
		new newcar = GetPlayerVehicleID(playerid);
		if(IsARentableBike(newcar))
		{
	   		print("IsARentableBike");
			if(saveBikeCarID[playerid] != newcar)
			{
			   	GetVehicleParamsEx(newcar,engine,light,alarm,doors,bonnet,boot,objective2);
		  		SetVehicleParamsEx(newcar,VEHICLE_PARAMS_OFF,light,alarm,doors,bonnet,boot,objective2);
				canStartEngine[playerid] = 1;
				SendClientMessage(playerid,COLOR_YELLOW,"You can rent this bike, type /rentcar!");
				return 1;
			}
			else
			{
			   	GetVehicleParamsEx(newcar,engine,light,alarm,doors,bonnet,boot,objective2);
		  		SetVehicleParamsEx(newcar,VEHICLE_PARAMS_ON,light,alarm,doors,bonnet,boot,objective2);
			}
		}
		if(IsARentablePlane(newcar))
		{
	   		print("IsARentablePlane");
			if(saveCarCarID[playerid] != newcar)
			{
			   	GetVehicleParamsEx(newcar,engine,light,alarm,doors,bonnet,boot,objective2);
		  										SetVehicleParamsEx(newcar,VEHICLE_PARAMS_OFF,light,alarm,doors,bonnet,boot,objective2);
				canStartEngine[playerid] = 1;
				SendClientMessage(playerid,COLOR_YELLOW,"You can rent this plane, type /rentcar!");
				return 1;
			}
			else
			{
			   	GetVehicleParamsEx(newcar,engine,light,alarm,doors,bonnet,boot,objective2);
		  		SetVehicleParamsEx(newcar,VEHICLE_PARAMS_ON,light,alarm,doors,bonnet,boot,objective2);
			}
		}
	}
public IsARentableBike(carid) looks like:

Код:
public IsARentableBike(carid)
{
	for(new i = 0; i < sizeof(RentBikes); i++)
	{
	    if(carid == RentBikes[i]) return 1;
	}
	return 0;
}
Reply


Messages In This Thread
Problem with PLAYER_STATE_DRIVER - by nescha - 02.05.2012, 12:04
Re: Problem with PLAYER_STATE_DRIVER - by MP2 - 02.05.2012, 12:36
Re: Problem with PLAYER_STATE_DRIVER - by MadeMan - 02.05.2012, 13:05
AW: Problem with PLAYER_STATE_DRIVER - by nescha - 02.05.2012, 15:14
Re: Problem with PLAYER_STATE_DRIVER - by andrewgrob - 02.05.2012, 16:28
AW: Problem with PLAYER_STATE_DRIVER - by nescha - 02.05.2012, 16:35
Re: Problem with PLAYER_STATE_DRIVER - by MadeMan - 02.05.2012, 16:48
AW: Problem with PLAYER_STATE_DRIVER - by nescha - 02.05.2012, 16:54
AW: Problem with PLAYER_STATE_DRIVER - by nescha - 03.05.2012, 15:31
AW: Problem with PLAYER_STATE_DRIVER - by nescha - 04.05.2012, 19:43

Forum Jump:


Users browsing this thread: 1 Guest(s)