#1

Did i do it right?

Doesnt give errors.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new vehicleid;
    if(newstate == PLAYER_STATE_DRIVER)
    if(!IsPlayerInInvalidNosVehicle(playerid,vehicleid))
    {
    AddVehicleComponent(vehicleid,1010);
    }
return 1;
}
Reply
#2

Test it? ><
Reply
#3

No errors, but doesnt give nitro.

Does anyone know how to fix.
Reply
#4

Edit:

Just Copy from me...

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
   new vehicleid = GetPlayerVehicleID(playerid);
	if(newstate == PLAYER_STATE_DRIVER)
	if(!IsPlayerInInvalidNosVehicle(playerid,vehicleid))
	{
	AddVehicleComponent(vehicleid,1010);
	}
return 1;
}
Why?

Simple.. you not sayd to your Script .. that the variable "vehicleid" is the Vehicle where the player is in
Reply
#5

I just did the same thing.

While i was testing you posted
Reply
#6

2 People , 1 Scripting idea
Reply
#7

Quote:
Originally Posted by Plato
Edit:

Just Copy from me...

Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
   new vehicleid = GetPlayerVehicleID(playerid);
	if(newstate == PLAYER_STATE_DRIVER && !IsPlayerInInvalidNosVehicle(playerid,vehicleid))
	{
	AddVehicleComponent(vehicleid,1010);
	}
return 1;
}
this would be bettah and indent a lil bit -_-

Why?

Simple.. you not sayd to your Script .. that the variable "vehicleid" is the Vehicle where the player is in
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)