Dialog problem
#1

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.

Reply
#2

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

Make sure that #define MAX is GLOBAL
Reply
#4

What you mean? asnwer fast
Reply
#5

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

Yes, it is
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)