Schönen guten Mittag liebe SA-MP Breadfish Community,
ich versuche nun auf diesen Wege mein Problem zu erklären und hoffe das ihr evtl. eine Lösung für mich habt.
Hier erstmal die PAWN Zeilen:
new ScriptCar1[MAX_PLAYERS];
new ScriptCar2[MAX_PLAYERS];
new ScriptCar3[MAX_PLAYERS];
new ScriptCar4[MAX_PLAYERS];
#define SCRIPTERCAR 4
CMD:scar(playerid,params[]){ ShowPlayerDialog(playerid, SCRIPTERCAR, DIALOG_STYLE_LIST, "Scripter Fahrzeuge","Sultan\nInfernus\nCheetah\nTurismo","Auswaehlen","Abbrechen"); return 1;}
if(dialogid == SCRIPTERCAR) { if(!response) return 1; switch(listitem) { case 0: new Float:pX, Float:pY, Float:pZ, Float:FA; GetPlayerPos(playerid, pX, pY, pZ); GetPlayerFacingAngle(playerid, FA); ScriptCar1[playerid] = CreateVehicle(560, pX, pY, pZ, FA, 2, 2,-1); PutPlayerInVehicle(playerid, ScriptCar1[playerid], 0); SendClientMessage(playerid, GRAU, "Scripter Fahrzeug gespawnt!"); SendClientMessage(playerid, GRAU, "Um es zu zerstören, tippe: /delscar"); case 1: new Float:pX, Float:pY, Float:pZ, Float:FA; GetPlayerPos(playerid, pX, pY, pZ); GetPlayerFacingAngle(playerid, FA); ScriptCar2[playerid] = CreateVehicle(411, pX, pY, pZ, FA, 2, 2,-1); PutPlayerInVehicle(playerid, ScriptCar2[playerid], 0); SendClientMessage(playerid, GRAU, "Scripter Fahrzeug gespawnt!"); SendClientMessage(playerid, GRAU, "Um es zu zerstören, tippe: /delscar"); case 2: new Float:pX, Float:pY, Float:pZ, Float:FA; GetPlayerPos(playerid, pX, pY, pZ); GetPlayerFacingAngle(playerid, FA); ScriptCar3[playerid] = CreateVehicle(415, pX, pY, pZ, FA, 2, 2,-1); PutPlayerInVehicle(playerid, ScriptCar3[playerid], 0); SendClientMessage(playerid, GRAU, "Scripter Fahrzeug gespawnt!"); SendClientMessage(playerid, GRAU, "Um es zu zerstören, tippe: /delscar"); case 3: new Float:pX, Float:pY, Float:pZ, Float:FA; GetPlayerPos(playerid, pX, pY, pZ); GetPlayerFacingAngle(playerid, FA); ScriptCar4[playerid] = CreateVehicle(451, pX, pY, pZ, FA, 2, 2,-1); PutPlayerInVehicle(playerid, ScriptCar4[playerid], 0); SendClientMessage(playerid, GRAU, "Scripter Fahrzeug gespawnt!"); SendClientMessage(playerid, GRAU, "Um es zu zerstören, tippe: /delscar"); } } return 1;
C:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(705) : error 003: declaration of a local variable must appear in a compound blockC:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(705) : error 017: undefined symbol "pX"C:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(705) : warning 215: expression has no effectC:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(706) : error 017: undefined symbol "pX"C:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(707) : error 017: undefined symbol "FA"C:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(708) : error 017: undefined symbol "pX"C:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(712) : error 014: invalid statement; not in switchC:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(712) : warning 215: expression has no effectC:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(712) : error 001: expected token: ";", but found ":"C:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(712) : error 029: invalid expression, assumed zeroC:\Users\Marcel\Desktop\Selfmade\gamemodes\Selfmade.pwn(712) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
9 Errors.
Habe ich irgendetwas vergessen oder falsch gemacht? ._.
Ich hoffe ihr könnt mir weiterhelfen.
Vielen dank im voraus für das Lesen.
Mit freundlichem Gruß
ItsFreaky
PS: Da der Code komisch dargestellt wird, hier nochmal der Pastebin Link.
http://pastebin.com/wxJmTmDm