Guten morgen liebe user, ich habe ein frage und zwar habe ich error den ich einfach nicht gefixt bekomme
ZitatAlles anzeigenC:\Users\Gnom3\Desktop\nightrl.pwn(17390) : error 012: invalid function call, not a valid address
C:\Users\Gnom3\Desktop\nightrl.pwn(17390) : warning 215: expression has no effect
C:\Users\Gnom3\Desktop\nightrl.pwn(17390) : error 001: expected token: ";", but found ")"
C:\Users\Gnom3\Desktop\nightrl.pwn(17390) : error 029: invalid expression, assumed zero
C:\Users\Gnom3\Desktop\nightrl.pwn(17390) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
PS:
Es ist selfmad RPG script also kein gf edit.
public OnPlayerStateChange(playerid, newstate, oldstate)
{
new vehicle = GetPlayerVehicleID(playerid);
new string[128];
if(newstate == PLAYER_STATE_PASSENGER)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 416)
{
SetPlayerPos(playerid, 2003.3, 2284.2, 1011.1);
SetPlayerFacingAngle(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerInterior(playerid, 1);
InAmbu[playerid] = GetPlayerVehicleID(playerid);
}
if(IsANoobCar(vehicle)) // <---- Problem zeile
{
SendClientMessage(playerid, COLOR_GREY, "Diese ist ein Neuling Fahrzeug!");
return 1;
}
if(IsAFBICar(vehicle))
{
if(PlayerInfo[playerid][pFaction] != 255 && FactionInfo[PlayerInfo[playerid][pFaction]][fType] == 2)
{
RemoveDriverFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "Diese ist ein BKA Fahrzeug!");
return 1;
}}
if((vehicle >= 63) && (vehicle <= 70))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInVehicle(i, vehicle) && GetPlayerState(i) == 2 && TaxiDuty[i] == 1)
{
if(GetPlayerMoney(playerid) < TaxiPrice[i])
{
format(string, sizeof(string), "Du brauchst ~g~$%d.00 um mit dem Taxi zu fahren.", TaxiPrice[i]);
InfoBoxForPlayer(playerid, string);
RemoveDriverFromVehicle(playerid);
}
else
{
GivePlayerCash(playerid, -TaxiPrice[i]);
GivePlayerCash(i, TaxiPrice[i]);
format(string, sizeof(string), "Du zahlst ~g~$%d.00 für das Taxi.", TaxiPrice[i]);
InfoBoxForPlayer(playerid, string);
}
}
}
}
}
}
return 1;
}
Vielen dank für die hilfe