Hey,
wie bekomme ich diese Errors weg?
Bin kein Neuling, verstehe den Sinn der Errors, aber ich kann sie nicht beheben
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(934) : error 029: invalid expression, assumed zero
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(934) : warning 215: expression has no effect
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(934) : error 001: expected token: ";", but found "if"
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(936) : error 029: invalid expression, assumed zero
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(936) : warning 215: expression has no effect
C:\Users\Narushi\Desktop\samp\SharpadoxRL\gamemodes\SharpadoxSelfmade.pwn(936) : error 001: expected token: ";", but found "if"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
Hier ist Codeschnipsel:
/*932*/if(strcmp(cmdtext, "/tanken", true) == 0)
/*933*/ {
/*934*/ else if(GetPlayerVehicleSeat(playerid) != 0) return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Fahrzeug (oder kein Fahrer).");
/*935*/ new car = GetPlayerVehicleID(playerid);
/*936*/ else if(TanktGerade[car]) return SendClientMessage(playerid,COLOR_GREY,"Du tankst schon!");
/*937*/ else if(Motor[car] == true) return SendClientMessage(playerid,COLOR_GREY,"Du musst vor dem Tanken den Motor ausschalten.");
/*938*/ new ZuTanken = 100-Tank[car];
/*939*/ new preis = ZuTanken * BENZINPREIS;
/*940*/ if (GetPlayerMoney(playerid)-preis < 0) return SendClientMessage(playerid,COLOR_GREY,"Du hast nicht genug Geld!");
/*941*/ GivePlayerMoney(playerid, -preis);
/*942*/ SendClientMessage(playerid, COLOR_GREEN, "Tanken wird gestartet.");
/*943*/ SetCameraBehindPlayer(playerid);
/*944*/ TogglePlayerControllable(playerid,0);
/*945*/ TanktGerade[car] = true;
/*946*/ tanktimer[playerid] = SetTimerEx("Auftanken",500,true,"i",playerid);
/*947*/ return 1;
/*948*/ }