03.09.2018, 10:27
Again error on compiler here.
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;
}
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;
}