03.09.2018, 10:19
I just replaced all "IsAdmin" in "pAdminLevel"
and now i just this error compile:
C:\Users\dgfh\Desktop\Nuova cartella\filterscripts\sistema veicoli backup\backup sistema veicoli.pwn(886) : error 029: invalid expression, assumed zero
C:\Users\dgfh\Desktop\Nuova cartella\filterscripts\sistema veicoli backup\backup sistema veicoli.pwn(886) : error 029: invalid expression, assumed zero
C:\Users\dgfh\Desktop\Nuova cartella\filterscripts\sistema veicoli backup\backup sistema veicoli.pwn(886) : warning 215: expression has no effect
C:\Users\dgfh\Desktop\Nuova cartella\filterscripts\sistema veicoli backup\backup sistema veicoli.pwn(886) : error 001: expected token: ";", but found ")"
C:\Users\dgfh\Desktop\Nuova cartella\filterscripts\sistema veicoli backup\backup sistema veicoli.pwn(886) : fatal error 107: too many error messages on one line
Script:
GetPlayerVehicleAccess(playerid, vehicleid)
{
if(IsValidVehicle(vehicleid))
{
if(VehicleCreated[vehicleid] == VEHICLE_DEALERSHIP)
{
if(pAdminLevel(playerid, 1)) ---------------------- THE PROBLEM IS HERE.
{
return 1;
}
}
else if(VehicleCreated[vehicleid] == VEHICLE_PLAYER)
{
if(strcmp(VehicleOwner[vehicleid], PlayerName(playerid)) == 0)
{
return 2;
}
else if(GetPVarInt(playerid, "Chiavimacchina") == vehicleid)
{
return 1;
}
}
}
else
{
return 1;
}
return 0;
}
now for resolve this?
and now i just this error compile:
C:\Users\dgfh\Desktop\Nuova cartella\filterscripts\sistema veicoli backup\backup sistema veicoli.pwn(886) : error 029: invalid expression, assumed zero
C:\Users\dgfh\Desktop\Nuova cartella\filterscripts\sistema veicoli backup\backup sistema veicoli.pwn(886) : error 029: invalid expression, assumed zero
C:\Users\dgfh\Desktop\Nuova cartella\filterscripts\sistema veicoli backup\backup sistema veicoli.pwn(886) : warning 215: expression has no effect
C:\Users\dgfh\Desktop\Nuova cartella\filterscripts\sistema veicoli backup\backup sistema veicoli.pwn(886) : error 001: expected token: ";", but found ")"
C:\Users\dgfh\Desktop\Nuova cartella\filterscripts\sistema veicoli backup\backup sistema veicoli.pwn(886) : fatal error 107: too many error messages on one line
Script:
GetPlayerVehicleAccess(playerid, vehicleid)
{
if(IsValidVehicle(vehicleid))
{
if(VehicleCreated[vehicleid] == VEHICLE_DEALERSHIP)
{
if(pAdminLevel(playerid, 1)) ---------------------- THE PROBLEM IS HERE.
{
return 1;
}
}
else if(VehicleCreated[vehicleid] == VEHICLE_PLAYER)
{
if(strcmp(VehicleOwner[vehicleid], PlayerName(playerid)) == 0)
{
return 2;
}
else if(GetPVarInt(playerid, "Chiavimacchina") == vehicleid)
{
return 1;
}
}
}
else
{
return 1;
}
return 0;
}
now for resolve this?