Line 5 errors
#4

Try doing this
Код:
if(GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsAPlane(GetPlayerVehicleID(i))) 
{
    new speed = Carspeed(i);
    if(speed > 230 && PlayerInfo[i][pAdmin] < 1 && !IsPlayerInArea(i, -3000, -2274.5, -1776, -859.5))
    {
        if(GetVehicleModel(i) == 522 && speed < 250)
        {
            if(GetAdmins() > 0) 
           {
               format(string, sizeof(string), "AdmWarning: %s(%d) conduce cu %.0d km/h un %s.", 
               GetName(i),i,speed,aVehicleNames[GetVehicleModel(GetPlayerVehicleID(i))-400]);
               if(GetPVarInt(i, "Cover") == 0) SendAdminMessage(COLOR_WARNING, string,1);
           }
           else
           {
                if(ServerSystem[5] == 0) NightBot(i, "Cheats (speed-hack)");
           }
        }
    }
    return 1;
}
I just need to know if it works if not we'll try something else
Reply


Messages In This Thread
Line 5 errors - by enzulikeS - 06.02.2018, 21:43
Re: Line 5 errors - by dani18 - 06.02.2018, 22:01
Re: Line 5 errors - by enzulikeS - 06.02.2018, 22:06
Re: Line 5 errors - by Hypex - 06.02.2018, 22:16
Re: Line 5 errors - by enzulikeS - 07.02.2018, 15:03
Re: Line 5 errors - by solstice_ - 07.02.2018, 15:04
Re: Line 5 errors - by enzulikeS - 07.02.2018, 15:05
Re: Line 5 errors - by solstice_ - 07.02.2018, 15:07
Re: Line 5 errors - by enzulikeS - 07.02.2018, 15:13
Re: Line 5 errors - by solstice_ - 07.02.2018, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)