Server Crashes
#10

well, I can't really find a problem, but, lets NOT use the IsPlayerConnectedEx function, instead simply copy paste it.

pawn Код:
public CrashListener()
{

    for(new i = 0; i < MAX_PLAYERS; i ++)
    {

        if(IsPlayerConnected(i) && !IsPlayerNPC(i)) PlayerUpdateListener(i);
        if(IsPlayerConnected(i) && character_chosen[i])
        {

            if(IsPlayerInAnyVehicle(i) && !crash_detection_disabled[i])
            {

                new veh = GetPlayerVehicleID(i);
                new Float:hp;
                GetVehicleHealth(veh,hp);
                if(hp < crash_vhp[veh])
                {
not sure if it will work, but its worth a try.
Reply


Messages In This Thread
Server Crashes - by rappy93 - 14.12.2013, 16:45
Re: Server Crashes - by rappy93 - 14.12.2013, 17:46
Re: Server Crashes - by rappy93 - 15.12.2013, 12:17
Re: Server Crashes - by niels44 - 15.12.2013, 12:43
Re: Server Crashes - by rappy93 - 15.12.2013, 13:09
Re: Server Crashes - by niels44 - 15.12.2013, 13:40
Re: Server Crashes - by rappy93 - 15.12.2013, 13:42
Re: Server Crashes - by niels44 - 15.12.2013, 13:46
Re: Server Crashes - by rappy93 - 15.12.2013, 13:59
Re: Server Crashes - by niels44 - 15.12.2013, 14:33

Forum Jump:


Users browsing this thread: 1 Guest(s)