Please help "Dialog"
#1

Define:
Quote:

#define Ronny 4000

Command
Quote:

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

return 1;
}

Dialogs:
Quote:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == Ronny)
{
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;
}

and it gives me this error:
Quote:

L:\Gta San Andreas\Gta San Andreas\Gta San Andreas\Jermi\gamemodes\Server.pwn(94) : error 017: undefined symbol "Ronny"
L:\Gta San Andreas\Gta San Andreas\Gta San Andreas\Jermi\gamemodes\Server.pwn(22 : error 017: undefined symbol "Ronny"
L:\Gta San Andreas\Gta San Andreas\Gta San Andreas\Jermi\gamemodes\Server.pwn(251) : error 030: compound statement not closed at the end of file (started at line 241)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)