Guten tag liebe community,
habe heute ein kleines waffenmenu gescriptet, dass leider nicht funktioniert... -.-*
Hier der Code:
if (strcmp("/Waffen", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid,WAFFEN,DIALOG_STYLE_LIST,"Waffen Menü"," Schlagring \n Golfschläger \n Knüppel \n Messer \n Baseball Schläger \n Schaufel \n Pool Stock \n Katana \n Kettensäge \n Lila Dildo \n Kleiner weißer Dildo \n Großer weißer Dildo \n Silberner Vibrator \n Blumen \n Spazierstock \n Granaten \n Tränen Gas \n Molotov Cocktail \n 9mm \n Schallgedämpfte 9mm \n Desert Eagle \n Shotgun \n Abgesägte Shotgun \n Combat Shotgun \n Micro SMG \n MP5 \n AK-47 \n M4 \n Tec9 \n Lands Gewehr \n Sniper \n Raketenwerfer \n HS Raketenwerfer \n Flammenwerfer \n Minigun \n Rucksack Bombe \n Zündeinheit \n Spraydose \n Feuerlöscher \n Kamera \n Nachtsicht Gerät \n Wärme Brille \n Fallschirm ","Abbrechen","Auswählen");
}
& der rest
if(dialogid == WAFFEN)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_WHITE,"Schlagring erhalten!");
GivePlayerWeapon(playerid, 1, 500);
}
case 1:
{
SendClientMessage(playerid,COLOR_WHITE,"Golfschläger erhalten!");
GivePlayerWeapon(playerid, 2, 500);
}
case 2:
{
SendClientMessage(playerid,COLOR_WHITE,"Knüppel erhalten!");
GivePlayerWeapon(playerid, 3, 500);
}
case 3:
{
SendClientMessage(playerid,COLOR_WHITE,"Messer erhalten!");
GivePlayerWeapon(playerid, 4, 500);
}
case 4:
{
SendClientMessage(playerid,COLOR_WHITE,"Baseball Schläger erhalten!");
GivePlayerWeapon(playerid, 5, 500);
}
case 5:
{
SendClientMessage(playerid,COLOR_WHITE,"Schaufel erhalten!");
GivePlayerWeapon(playerid, 6, 500);
}
case 6:
{
SendClientMessage(playerid,COLOR_WHITE,"Pool Stock erhalten!");
GivePlayerWeapon(playerid, 7, 500);
}
case 7:
{
SendClientMessage(playerid,COLOR_WHITE,"Katana erhalten!");
GivePlayerWeapon(playerid, 8, 500);
}
case 8:
{
SendClientMessage(playerid,COLOR_WHITE,"Kettensäge erhalten!");
GivePlayerWeapon(playerid, 9, 500);
}
case 9:
{
SendClientMessage(playerid,COLOR_WHITE,"Lila Dildo erhalten!");
GivePlayerWeapon(playerid, 10, 500);
}
case 10:
{
SendClientMessage(playerid,COLOR_WHITE,"Kleiner weißer Dildo erhalten!");
GivePlayerWeapon(playerid, 11, 500);
}
case 11:
{
SendClientMessage(playerid,COLOR_WHITE,"Großer weißer Dildo erhalten!");
GivePlayerWeapon(playerid, 12, 500);
}
case 12:
{
SendClientMessage(playerid,COLOR_WHITE,"Silberner Vibrator erhalten!");
GivePlayerWeapon(playerid, 13, 500);
}
case 13:
{
SendClientMessage(playerid,COLOR_WHITE,"Blumen erhalten!");
GivePlayerWeapon(playerid, 14, 500);
}
case 14:
{
SendClientMessage(playerid,COLOR_WHITE,"Spazierstock erhalten!");
GivePlayerWeapon(playerid, 15, 500);
}
case 15:
{
SendClientMessage(playerid,COLOR_WHITE,"Granaten erhalten!");
GivePlayerWeapon(playerid, 16, 500);
}
case 16:
{
SendClientMessage(playerid,COLOR_WHITE,"Tränen Gas erhalten!");
GivePlayerWeapon(playerid, 17, 500);
}
case 17:
{
SendClientMessage(playerid,COLOR_WHITE,"Molotov Cocktail erhalten!");
GivePlayerWeapon(playerid, 18, 500);
}
case 18:
{
SendClientMessage(playerid,COLOR_WHITE,"9mm erhalten!");
GivePlayerWeapon(playerid, 22, 500);
}
case 19:
{
SendClientMessage(playerid,COLOR_WHITE,"Schallgedämpfte 9mm erhalten!");
GivePlayerWeapon(playerid, 23, 500);
}
case 20:
{
SendClientMessage(playerid,COLOR_WHITE,"Desert Eagle erhalten!");
GivePlayerWeapon(playerid, 24, 500);
}
case 21:
{
SendClientMessage(playerid,COLOR_WHITE,"Shotgun erhalten!");
GivePlayerWeapon(playerid, 25, 500);
}
case 22:
{
SendClientMessage(playerid,COLOR_WHITE,"Abgesägte Shotgun erhalten!");
GivePlayerWeapon(playerid, 26, 500);
}
case 23:
{
SendClientMessage(playerid,COLOR_WHITE,"Combat Shotgun erhalten!");
GivePlayerWeapon(playerid, 27, 500);
}
case 24:
{
SendClientMessage(playerid,COLOR_WHITE,"Micro SMG erhalten!");
GivePlayerWeapon(playerid, 28, 500);
}
case 25:
{
SendClientMessage(playerid,COLOR_WHITE,"MP5 erhalten!");
GivePlayerWeapon(playerid, 29, 500);
}
case 26:
{
SendClientMessage(playerid,COLOR_WHITE,"AK-47 erhalten!");
GivePlayerWeapon(playerid, 30, 500);
}
case 27:
{
SendClientMessage(playerid,COLOR_WHITE,"M4 erhalten!");
GivePlayerWeapon(playerid, 31, 500);
}
case 28:
{
SendClientMessage(playerid,COLOR_WHITE,"Tec9 erhalten!");
GivePlayerWeapon(playerid, 32, 500);
}
case 29:
{
SendClientMessage(playerid,COLOR_WHITE,"Lands Gewehr erhalten!");
GivePlayerWeapon(playerid, 33, 500);
}
case 30:
{
SendClientMessage(playerid,COLOR_WHITE,"Sniper erhalten!");
GivePlayerWeapon(playerid, 34, 500);
}
case 31:
{
SendClientMessage(playerid,COLOR_WHITE,"Raketenwerfer erhalten!");
GivePlayerWeapon(playerid, 35, 500);
}
case 32:
{
SendClientMessage(playerid,COLOR_WHITE,"HS Raketenwerfer erhalten!");
GivePlayerWeapon(playerid, 36, 500);
}
case 33:
{
SendClientMessage(playerid,COLOR_WHITE,"Flammenwerfer erhalten!");
GivePlayerWeapon(playerid, 37, 500);
}
case 34:
{
SendClientMessage(playerid,COLOR_WHITE,"Minigun erhalten!");
GivePlayerWeapon(playerid, 38, 500);
}
case 35:
{
SendClientMessage(playerid,COLOR_WHITE,"Rucksack Bombe erhalten!");
GivePlayerWeapon(playerid, 39, 500);
}
case 36:
{
SendClientMessage(playerid,COLOR_WHITE,"Zündeinheit erhalten!");
GivePlayerWeapon(playerid, 40, 500);
}
case 37:
{
SendClientMessage(playerid,COLOR_WHITE,"Spraydose erhalten!");
GivePlayerWeapon(playerid, 41, 500);
}
case 38:
{
SendClientMessage(playerid,COLOR_WHITE,"Feuerlöscher erhalten!");
GivePlayerWeapon(playerid, 42, 500);
}
case 39:
{
SendClientMessage(playerid,COLOR_WHITE,"Kamera erhalten!");
GivePlayerWeapon(playerid, 43, 500);
}
case 40:
{
SendClientMessage(playerid,COLOR_WHITE,"Nachtsicht Gerät erhalten!");
GivePlayerWeapon(playerid, 44, 500);
}
case 41:
{
SendClientMessage(playerid,COLOR_WHITE,"Wärme Brille erhalten!");
GivePlayerWeapon(playerid, 45, 500);
}
case 42:
{
SendClientMessage(playerid,COLOR_WHITE,"Fallschirm erhalten!");
GivePlayerWeapon(playerid, 46, 500);
}
}
}
return 0;
}
Kriege diese fehlermeldungen von Pawno:
C:\samp03dsvr_R2_win32\gamemodes\exor-mod.pwn(189) : error 075: input line too long (after substitutions)
C:\samp03dsvr_R2_win32\gamemodes\exor-mod.pwn(190) : error 037: invalid string (possibly non-terminated string)
C:\samp03dsvr_R2_win32\gamemodes\exor-mod.pwn(190) : error 017: undefined symbol "Schlagring"
C:\samp03dsvr_R2_win32\gamemodes\exor-mod.pwn(190) : error 029: invalid expression, assumed zero
C:\samp03dsvr_R2_win32\gamemodes\exor-mod.pwn(190) : 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.
Alles anzeigen