Code
C:\Users\cCc908\Desktop\SAMP\gamemodes\uni.pwn(354) : error 017: undefined symbol "Motor"C:\Users\cCc908\Desktop\SAMP\gamemodes\uni.pwn(360) : error 017: undefined symbol "engine"C:\Users\cCc908\Desktop\SAMP\gamemodes\uni.pwn(361) : error 017: undefined symbol "lights"C:\Users\cCc908\Desktop\SAMP\gamemodes\uni.pwn(377) : error 017: undefined symbol "COLOR_GREEN"C:\Users\cCc908\Desktop\SAMP\gamemodes\uni.pwn(700) : error 029: invalid expression, assumed zeroC:\Users\cCc908\Desktop\SAMP\gamemodes\uni.pwn(700) : warning 215: expression has no effectC:\Users\cCc908\Desktop\SAMP\gamemodes\uni.pwn(700) : error 001: expected token: ";", but found "if"C:\Users\cCc908\Desktop\SAMP\gamemodes\uni.pwn(700) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
Hier die ZEILEN
Code
public BenzinVerlust(){ for(new i=0; i<MAX_VEHICLES; i++) { if (Motor == true) { Tank[i] = Tank[i]-1; if (Tank[i]<1) { Tank[i] = 0; GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(i,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective); Engine[i] = false; } } } return 1;}
public Auftanken(playerid){new car = GetPlayerVehicleID(playerid);Tank[car] = Tank[car] +1;if(Tank[car] >= 100){TanktGerade[car] = false;Tank[car] = 100;SendClientMessage(playerid, COLOR_GREEN, "Dein Fahrzeug wurde vollgetankt.");TogglePlayerControllable(playerid,1);KillTimer(tanktimer[playerid]);}return 1;}
Code
if(strcmp(cmdtext, "/tanken", true) == 0) { else if (GetPlayerVehicleSeat(playerid) != 0) return SendClientMessage(playerid,COLOR_RED,"Du bist in keinem Fahrzeug (oder kein Fahrer)."); new car = GetPlayerVehicleID(playerid); else if (TanktGerade[car]) return SendClientMessage(playerid,COLOR_RED,"Du tankst schon!"); else if (Motor[car] == true) return SendClientMessage(playerid,COLOR_RED,"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,COLOR_TOMATO,"Du hast nicht genug Geld!"); GivePlayerMoney(playerid, -preis); SendClientMessage(playerid, COLOR_GREEN, "Tanken wird gestartet."); SetCameraBehindPlayer(playerid); TogglePlayerControllable(playerid,0); TanktGerade[car] = true; tanktimer[playerid] = SetTimerEx("Auftanken",500,true,"i",playerid); return 1; }
Hoffe könnt helfen