Heii Leute,
ich habe da mal nen kleiens SEK-Menü gescripted, bekomme aber immer 4 Errors.
Kann ihn aber nciht finden!
Gruß
ZitatC:\Users\Dennis\Desktop\Server\gamemodes\saartdenninho.pwn(1747) : error 037: invalid string (possibly non-terminated string)
C:\Users\Dennis\Desktop\Server\gamemodes\saartdenninho.pwn(1747) : error 017: undefined symbol "Duty"
C:\Users\Dennis\Desktop\Server\gamemodes\saartdenninho.pwn(1747) : error 029: invalid expression, assumed zero
C:\Users\Dennis\Desktop\Server\gamemodes\saartdenninho.pwn(1747) : fatal error 107: too many error messages on one line
#define sek 3
if (strcmp("/sek", cmdtext, true) == 0)
{
if(Spieler[playerid][team] == 1)
{
if(IsPlayerInRangeOfPoint(playerid,3,306.0768,-136.1975,999.6016))
{
ShowPlayerDialog(playerid, sek, DIALOG_STYLE_LIST,"SEK-Menu","Duty\nKleidung\nWaffen); //Zeile 1747
return 1;
}
else
{
SendClientMessage(playerid, Rot, "Du bist nicht im Umkleideraum");
return 1;
}
}
}
if(dialogid == sek)
{
if(response)
{
if(listitem == 0)
{
for(new i = 0; i < MAX_PLAYERS; i++) ShowPlayerNameTagForPlayer(i, playerid, false);
SendClientMessage(playerid,0x0000FFFF, "Du bist jetzt on duty");
inDuty[playerid] = 1;
}
if(listitem == 1)
{
SetPlayerSkin(playerid, 285)
}
if(listitem == 2)
{
GivePlayerWeapon(playerid,17,5);
GivePlayerWeapon(playerid,24,100);
GivePlayerWeapon(playerid,27,50);
GivePlayerWeapon(playerid,29,250);
GivePlayerWeapon(playerid,31,400);
GivePlayerWeapon(playerid,46,1);
GivePlayerWeapon(playerid,44,1);
GivePlayerWeapon(playerid,45,1);
}
}
}