Hallo Breadfish, ich habe versucht ein Fightstyle menu zu erstellen mit GUI, naja fast geschaft nur errors!!
hier mein Code
#define Fightstylemenu 0
if(strcmp("/Fightstyle", cmdtext, true) == 0)
{
if (PlayerToPoint(playerid, 3, 1846.7045,-1871.8756,13.5781))//eure koordinaten
{
ShowPlayerDialog(playerid, Fightstylemenu, DIALOG_STYLE_LIST, "Style", "KUNGFU\nBOXING\nGRABKICK\nKNEEHEAD", "Auswählen", "Abbrechen");
}
else
SendClientMessage(playerid, COLOR_RED, "Du bist nicht im Fitness Center");
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Fightstylemenu) // Name des Menüs, das wir als ID 0 definiert haben
{
if(response)
{
if(listitem == 0)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
GivePlayerMoney(playerid, -150);
}
if(listitem == 1)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
GivePlayerMoney(playerid, -180);
}
if(listitem == 2)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
GivePlayerMoney(playerid, -250);
}
if(listitem == 3)
{
SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
GivePlayerMoney(playerid, -300);
}
}
}
Der Public public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{ habe ich selbst erstellt, weil der bei mir noch nich war!
so hier die errors
C:\Users\Mario\Desktop\SFD.pwn(9652) : error 017: undefined symbol "SetPlayerFightingStyle"
C:\Users\Mario\Desktop\SFD.pwn(28573) : error 017: undefined symbol "SetPlayerFightingStyle"
C:\Users\Mario\Desktop\SFD.pwn(28578) : error 017: undefined symbol "SetPlayerFightingStyle"
C:\Users\Mario\Desktop\SFD.pwn(28584) : error 017: undefined symbol "SetPlayerFightingStyle"
C:\Users\Mario\Desktop\SFD.pwn(28589) : error 017: undefined symbol "SetPlayerFightingStyle"
C:\Users\Mario\Desktop\SFD.pwn(28596) : error 030: compound statement not closed at the end of file (started at line 28567)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
6 Errors.
Hoffe jemand kann mir Helfen