Hi ich habe ein Problem:
Errors:
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(364) : error 029: invalid expression, assumed zero
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(364) : warning 215: expression has no effect
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(364) : error 001: expected token: ";", but found "if"
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(366) : error 029: invalid expression, assumed zero
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(366) : warning 215: expression has no effect
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(366) : error 001: expected token: ";", but found "if"
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(382) : warning 217: loose indentation
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(417) : warning 217: loose indentation
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(662) : warning 217: loose indentation
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(1108) : error 017: undefined symbol "c"
C:\Users\Christian\Desktop\samp03csvr_R2-2_win32\gamemodes\Untitled.pwn(1109) : error 017: undefined symbol "c"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Betroffene Zeilen:
if(strcmp(cmdtext, "/tanken", true) == 0)
{
else if (GetPlayerVehicleSeat(playerid) != 0) return SendClientMessage(playerid,ROT,"Du bist in keinem Fahrzeug (oder kein Fahrer).");
new car = GetPlayerVehicleID(playerid);
else if (TanktGerade[car]) return SendClientMessage(playerid,ROT,"Du tankst schon!");
else if (Motor[car] == true) return SendClientMessage(playerid,ROT,"Du musst vor dem Tanken den Motor ausschalten.");
new ZuTanken = 100-Tank[car];
new preis = ZuTanken * BENZINPREIS;
if (GetPlayerMoney(playerid)-preis < 0) return SendClientMessage(playerid,GRAU,"Du hast nicht genug Geld!");
GivePlayerMoney(playerid, -preis);
SendClientMessage(playerid, GRÜN, "Tanken wird gestartet.");
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid,0);
TanktGerade[car] = true;
tanktimer[playerid] = SetTimerEx("Auftanken",500,true,"i",playerid);
return 1;
}
Was muss ich machen?