06.02.2018, 21:43
D:\server\gamemodes\ExtremeGame.pwn(1609 : error 012: invalid function call, not a valid address
D:\server\gamemodes\ExtremeGame.pwn(1609 : error 029: invalid expression, assumed zero
D:\server\gamemodes\ExtremeGame.pwn(1609 : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(1609 : error 001: expected token: ";", but found ")"
D:\server\gamemodes\ExtremeGame.pwn(1609 : fatal error 107: too many error messages on one line
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) return 1;
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)");
}
}
The errored line: if(GetAdmins() > 0) {
D:\server\gamemodes\ExtremeGame.pwn(1609 : error 029: invalid expression, assumed zero
D:\server\gamemodes\ExtremeGame.pwn(1609 : warning 215: expression has no effect
D:\server\gamemodes\ExtremeGame.pwn(1609 : error 001: expected token: ";", but found ")"
D:\server\gamemodes\ExtremeGame.pwn(1609 : fatal error 107: too many error messages on one line
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) return 1;
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)");
}
}
The errored line: if(GetAdmins() > 0) {