A big bug !
#1

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 !!!!!!
Reply
#2

Show us some snippets of your script, so we can help you. Show us your OnPlayerEnterVehicle
Reply
#3

Is there something under OnPlayerEnterVehicle on your script?
Reply
#4

Search for RemovePlayerFromVehicle at OnPlayerStateChange.
Reply
#5

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 !");
}
}
}
Reply
#6

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);
}
}
Reply
#7

Most likely you enter in a vehicle that asks you to be in a team, it's a team only vehicle.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)