Hallo Leute,
bei mir funktioniert mein /fill Funktion nicht hier der Code:
if(strcmp(cmd, "/fill", true) == 0)
// ShowPlayerDialog(playerid, DIALOG_BEZAHLEN, DIALOG_STYLE_LIST, "Womit möchtest du bezahlen", "Bargeld\nEc Karte", "Auswälen", "");
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Du musst in einem Fahrzeug sitzen!");
if(GetPlayerVehicleSeat(playerid) != 0) return SendClientMessage(playerid, COLOR_WHITE, "Nur der Fahrer kann das Fahrzeug auftanken!");
new notanke = 0;
for(new b = 0; b < sizeof(TankeInfo); b++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, TankeInfo[b][tEntranceX], TankeInfo[b][tEntranceY], TankeInfo[b][tEntranceZ]))
{
if (IsPlayerInRangeOfPoint(playerid,3.0,-91.6928,-1170.3101,2.4106) ||IsPlayerInRangeOfPoint(playerid,3.0,-2024.4131,156.3826,28.8359)
|| IsPlayerInRangeOfPoint(playerid,3.0,2411.5710,976.1568,45.4609) || IsPlayerInRangeOfPoint(playerid,3.0, -1674.7457,413.9423,7.1797)
|| IsPlayerInRangeOfPoint(playerid,3.0, 1939.7811,-1772.3312,13.3906)|| IsPlayerInRangeOfPoint(playerid,3.0, 1004.9082,-940.9944,41.7214)
|| IsPlayerInRangeOfPoint(playerid,3.0, 1939.2225,-1772.7452,12.9431)
|| PlayerInfo[playerid][pLocal] != 255)
}
if(IsPlayerConnected(playerid))
{
if(IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
{
return SendClientMessage(playerid,COLOR_YELLOW," Du kannst kein Fahrrad betanken!");
}
SetTimer("Fillup",RefuelWait,0);
Refueling[playerid] = 1;
FreezePlayer(playerid);
SendClientMessage(playerid,COLOR_WHITE," Dein Fahrzeug wird betankt, Bitte warten....");
notanke = 0;
return 1;
}
}
else notanke = 1;
}
if(notanke == 1) {
return SendClientMessage(playerid, COLOR_WHITE, "Du bist an keiner Tankstelle.");
}
}
Hier die Fehler:
C:\Users\Marvin\Desktop\Yöha\gamemodes\GER.pwn(39536) : error 029: invalid expression, assumed zero
C:\Users\Marvin\Desktop\Yöha\gamemodes\GER.pwn(39536 -- 39537) : warning 215: expression has no effect
C:\Users\Marvin\Desktop\Yöha\gamemodes\GER.pwn(39537) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.