Guten Tag,
Ich habe grade Freereaom script runtergeladen
C:\Dokumente und Einstellungen\Silas1\Desktop\SAMP Server Setup\gamemodes\Stunt.pwn(96) : error 017: undefined symbol "Waffenmenu"
C:\Dokumente und Einstellungen\Silas1\Desktop\SAMP Server Setup\gamemodes\Stunt.pwn(229) : error 017: undefined symbol "Waffenmenu"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Waffenmenu)
{
if(response)
{
if(listitem == 0) // Pistole
{
GivePlayerWeapon(playerid,22,100);
}
if(listitem == 1) // Desert Eagle
{
GivePlayerWeapon(playerid,24,75);
}
if(listitem == 2) // M4
{
GivePlayerWeapon(playerid,31,300);
}
if(listitem == 3) // Raketenwerfer
{
GivePlayerWeapon(playerid,35,10);
}
if(listitem == 4) // Scharfschützengewehr
{
GivePlayerWeapon(playerid,34,30);
}
if(listitem == 5) // Gewehr
{
GivePlayerWeapon(playerid,25,60);
}
if(listitem == 6) // Granate
{
GivePlayerWeapon(playerid,16,20);
}
}
}
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/waffen", cmdtext, true) == 0)
{
ShowPlayerDialog(playerid, Waffenmenu, DIALOG_STYLE_LIST, "Waffen", "Pistole\nDesert Eagle\nM4\nRaketenwerfer\nScharfschützengewehr\nGewehr\nGranate", "Auswählen", "Abbrechen");
return 1;
}
return 0;
}
MfG KillerOne