Hallo.
In meinem neuen Autohaus Script bekomme ich folgende Errors:
C:\Users\Georg\Desktop\gamemodes\Reallife.pwn(712) : error 001: expected token: ",", but found ";"
C:\Users\Georg\Desktop\gamemodes\Reallife.pwn(712) : error 029: invalid expression, assumed zero
C:\Users\Georg\Desktop\gamemodes\Reallife.pwn(712) : warning 215: expression has no effect
C:\Users\Georg\Desktop\gamemodes\Reallife.pwn(712) : warning 215: expression has no effect
C:\Users\Georg\Desktop\gamemodes\Reallife.pwn(712) : warning 215: expression has no effect
C:\Users\Georg\Desktop\gamemodes\Reallife.pwn(712) : warning 215: expression has no effect
C:\Users\Georg\Desktop\gamemodes\Reallife.pwn(712) : warning 215: expression has no effect
C:\Users\Georg\Desktop\gamemodes\Reallife.pwn(712) : error 001: expected token: ";", but found ")"
C:\Users\Georg\Desktop\gamemodes\Reallife.pwn(712) : fatal error 107: too many error messages on one line
Im Absatz:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
new vehicleid = GetPlayerVehicleID(playerid);
for(new i = 0; i < sizeof Buycars; i++)
{
if(vehicleid == kaufauto[i])
{
new str[150];
format(str,sizeof(str),"Möchten Sie dieses Fahrzeug kaufen?\n\nName: %s\nPreis: %d", Buycars[i][Name], Buycars[i][Preis]);
TogglePlayerControllable(playerid,0);
return ShowPlayerDialog(playerid,Dialog_Buycar,DIALOG_STYLE_MSGBOX,"Autokauf",str,"Kaufen","Abbrechen");
}
else continue;
}
}
return 1;
}
und zwar in der zeile
return ShowPlayerDialog(playerid,Dialog_Buycar,DIALOG_STYLE_MSGBOX,"Autokauf",str,"Kaufen","Abbrechen");
Ich sehe irgendwie kein Problem. Kann mir jemand helfen?