Ich habe folgende Errors.
C:\Users\Patrik\Desktop\samp server test\gamemodes\Tutorial.pwn(298) : error 029: invalid expression, assumed zero
C:\Users\Patrik\Desktop\samp server test\gamemodes\Tutorial.pwn(298) : warning 215: expression has no effect
C:\Users\Patrik\Desktop\samp server test\gamemodes\Tutorial.pwn(298) : error 001: expected token: ";", but found "if"
C:\Users\Patrik\Desktop\samp server test\gamemodes\Tutorial.pwn(298) : error 036: empty statement
C:\Users\Patrik\Desktop\samp server test\gamemodes\Tutorial.pwn(298) : 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.
Die Zeilen Dazu:
if(strcmp(cmdtext, "/m", true) == 0)
{
if(GetPlayerVehicleSeat(playerid) == 0)
{
new car = GetPlayerVehicleID(playerid);
if(GetVehicleModel(car) == 509 || GetVehicleModel(car) == 481 || GetVehicleModel(car) == 510)
{
SendClientMessage(playerid, ROT, "Du sitzt auf einem Fahrrad. Das hat keinen Motor!");
}
else if (Tank[car] < 1)
{
SendClientMessage(playerid, ROT, "Der Tank ist leer. Du musst erst /tanken.");
}
else if (Motor[car] == false )
{
GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
Motor[car] = true; // Setzt den Bool Motor auf true
}
else
{
GetVehicleParamsEx(car,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(car,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
Motor[car] = false; // Setzt den Bool wieder auf falsch zurück.
}
}
}
if(strcmp(cmdtext, "/tanken", true) == 0)
{
else if (GetPlayerVehicleSeat(playerid) != 0); return SendClientMessage(playerid,ROT,"Du bist in keinem Fahrzeug (oder kein Fahrer).");//Zeile 298
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,ROT,"Du hast nicht genug Geld!");
GivePlayerMoney(playerid, -preis);
SendClientMessage(playerid, GREEN, "Tanken wird gestartet.");
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid,0);
TanktGerade[car] = true;
tanktimer[playerid] = SetTimerEx("Auftanken",500,true,"i",playerid);
return 1;
}
return 1;
}