SA-MP Forums Archive
Dialog problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Dialog problem (/showthread.php?tid=367802)



Dialog problem - Jermi - 11.08.2012

Look:
Quote:

#define MAX 4000

Quote:

if (strcmp("/RADIOCHECK", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, MAX, DIALOG_STYLE_LIST, "LSPD Menu", "LSPD\nDuty", "Select", "Cancel");

return 1;
}
return 0;
}

Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == MAX)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid, 101, DIALOG_STYLE_LIST, "LSPD MENU", "How to be cop\ni don't know", "Select", "Cancel");
}
return 1;
}
}
if(dialogid == 101)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid,24,500);
}
return 1;
}

Errors

Quote:

L:\Gta San Andreas\Gta San Andreas\Gta San Andreas\Jermi\gamemodes\Server.pwn(93) : error 017: undefined symbol "MAX"
L:\Gta San Andreas\Gta San Andreas\Gta San Andreas\Jermi\gamemodes\Server.pwn(227) : error 017: undefined symbol "MAX"
L:\Gta San Andreas\Gta San Andreas\Gta San Andreas\Jermi\gamemodes\Server.pwn(24 : warning 217: loose indentation
L:\Gta San Andreas\Gta San Andreas\Gta San Andreas\Jermi\gamemodes\Server.pwn(24 : error 029: invalid expression, assumed zero
L:\Gta San Andreas\Gta San Andreas\Gta San Andreas\Jermi\gamemodes\Server.pwn(24 : error 004: function "OnPlayerClickPlayer" is not implemented
L:\Gta San Andreas\Gta San Andreas\Gta San Andreas\Jermi\gamemodes\Server.pwn(252) : error 030: compound statement not closed at the end of file (started at line 240)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.




Re: Dialog problem - Jermi - 11.08.2012

Didn't i define the list or something? if not tell me where to define and what to define, Thanks


Re: Dialog problem - [MM]RoXoR[FS] - 11.08.2012

Make sure that #define MAX is GLOBAL


Re: Dialog problem - Jermi - 11.08.2012

What you mean? asnwer fast


Re: Dialog problem - [MM]RoXoR[FS] - 11.08.2012

I mean that
Код:
#define MAX 4000
must be on top of your script.


Re: Dialog problem - Jermi - 11.08.2012

Yes, it is