SA-MP Forums Archive
A big bug ! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: A big bug ! (/showthread.php?tid=440901)



A big bug ! - bilmenozila - 31.05.2013

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 !!!!!!


Re: A big bug ! - Red_Dragon. - 31.05.2013

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


Re: A big bug ! - Smokkr - 31.05.2013

Is there something under OnPlayerEnterVehicle on your script?


Re: A big bug ! - RaZVaN ^ xD - 31.05.2013

Search for RemovePlayerFromVehicle at OnPlayerStateChange.


Re: A big bug ! - bilmenozila - 01.06.2013

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


Re: A big bug ! - bilmenozila - 01.06.2013

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


Re: A big bug ! - rhds - 01.06.2013

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