Guten Tag,
ich habe keine Waffenkammer gemacht...
Aber ich kriege 5 Errors vielleicht kann mir einer helfen...
So sieht sie aus :
#define DIALOG_WAFFENKAMMER
new ausbruch 0;
if(strcmp(cmd,"/kammeraufbrechen",true) == 0) { if(ausbruch[playerid] == 1)return SendClientMessage(playerid,ROT,"Du darfst noch nicht in die Waffen kammer."); if(IsPlayerInRangeOfPoint(playerid,2.0,1583.8921,-1649.0535,19.8792)) { new string[128],name[MAX_PLAYER_NAME]; SetTimer("ausbrechen",3600000,0); ausbruch[playerid] = 1; GetPlayerName(playerid,name,sizeof(name)); format(string,sizeof(string),"NEWS: %s hat die Waffenkammer der LSPD aufgebrochen!",name); SendClientMessageToAll(0x9B00FFFF,string); ShowPlayerDialog(playerid,DIALOG_WAFFENKAMMER,DIALOG_STYLE_LIST,"Waffenkammer","Deagle\nMP5\nM4\nSniper","Nehmen","Abbrechen"); return 1; } }
if(dialogid == DIALOG_WAFFENKAMMER) { if(response) { if(listitem == 0) { GivePlayerWeapon(playerid,24,60); } if(listitem == 1) { GivePlayerWeapon(playerid,29,120); } if(listitem == 2) { GivePlayerWeapon(playerid,31,120); } if(listitem == 3) { GivePlayerWeapon(playerid,34,60); } } }
Hier die Errors:
C:\Users\Moriz\Desktop\Server Scripts\TESTEB\gamemodes\Release.pwn(23) : error 001: expected token: ";", but found "-integer value-"C:\Users\Moriz\Desktop\Server Scripts\TESTEB\gamemodes\Release.pwn(21304) : error 028: invalid subscript (not an array or too many subscripts): "ausbruch"C:\Users\Moriz\Desktop\Server Scripts\TESTEB\gamemodes\Release.pwn(21304) : warning 215: expression has no effectC:\Users\Moriz\Desktop\Server Scripts\TESTEB\gamemodes\Release.pwn(21304) : error 001: expected token: ";", but found "]"C:\Users\Moriz\Desktop\Server Scripts\TESTEB\gamemodes\Release.pwn(21304) : error 029: invalid expression, assumed zeroC:\Users\Moriz\Desktop\Server Scripts\TESTEB\gamemodes\Release.pwn(21304) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
Mfg
Raven