Posts: 16
Threads: 2
Joined: Jun 2012
Reputation:
0
Hey guys , i have a bug on my server . I created an account on sa:mp.com for some support !
The bug is like this :;
Whene i press enter to enter in a car , i enter in the car and after 1 second without pressing anything the caracter get out of the car. in chat appears the engine start tutorial the keys should i press !
At the compiling i have no errors !!!!!!
Posts: 1,391
Threads: 85
Joined: Sep 2012
Reputation:
0
Show us some snippets of your script, so we can help you. Show us your OnPlayerEnterVehicle
Posts: 313
Threads: 28
Joined: May 2012
Reputation:
0
Is there something under OnPlayerEnterVehicle on your script?
Posts: 295
Threads: 4
Joined: Jul 2012
Reputation:
0
Search for RemovePlayerFromVehicle at OnPlayerStateChange.
Posts: 16
Threads: 2
Joined: Jun 2012
Reputation:
0
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(gTeam[playerid] >= 1||gTeam[playerid] >= 3||gTeam[playerid] >= 4)
{
if(PlayerInfo[playerid][pSala] < 1)
{
if (IsASala(vehicleid) && !ispassenger)
{
if(PlayerInfo[playerid][pSala] < 1) {}
else
{
SendClientMessage(playerid, COLOR_GREY, " Nu ai dat pentru examenul de condus !");
}
}
}
Posts: 16
Threads: 2
Joined: Jun 2012
Reputation:
0
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new string[256];
new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
new vehicle = GetPlayerVehicleID(playerid);
if(Disguise[playerid] == 1)
{
for(new a = 0; a < MAX_PLAYERS; a++)
{
ShowPlayerNameTagForPlayer(a, playerid, 0);
}
}
else if(Disguise[playerid] != 1)
{
for(new a = 0; a < MAX_PLAYERS; a++)
{
ShowPlayerNameTagForPlayer(a, playerid, 1);
}
}
Posts: 87
Threads: 8
Joined: Dec 2012
Reputation:
0
Most likely you enter in a vehicle that asks you to be in a team, it's a team only vehicle.