Dialog won't work -
Sh4d0w2 - 15.11.2015
Im trying my dialog but it doesn't work at all.As you can see it should Send a message but nothing happened.Im using Easy Dialog by emmet.
PHP код:
Dialog:DIALOG_RANK(playerid, response, listitem, inputtext[])
{
if(!response) return ShowPlayerDialog(playerid,DIALOG_RANK,DIALOG_STYLE_LIST,"Choose your rank","a\na\na","OK","");
else if(response)
{
switch(listitem)
{
case 0: //LEADER = Police
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}SoD Leader {FFFFFF}**");
}
case 1://CO-Leader = Biker
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}SoD CO-Leader {FFFFFF}**");
}
case 2://Elder = Grove Street
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}SoD Elder {FFFFFF}**");
}
case 3://Guest = Grove Street
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}Guest {FFFFFF}**");
SendClientMessage(playerid, 0xFFFFFFAA, "** Enjoy your stay here **");
}
}
}
return 1;
}
//--------------------------------------------------------------------------------------------------------------------
CMD:as(playerid, params[])
{
ShowPlayerDialog(playerid,DIALOG_RANK,DIALOG_STYLE_LIST,"Choose your rank","a\na\na","OK","");
return 1;
}
Re: Dialog won't work -
IceBilizard - 15.11.2015
try this
PHP код:
Dialog:DIALOG_RANK(playerid, response, listitem, inputtext[])
{
if(response)
{
switch(listitem)
{
case 0: //LEADER = Police
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}SoD Leader {FFFFFF}**");
}
case 1://CO-Leader = Biker
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}SoD CO-Leader {FFFFFF}**");
}
case 2://Elder = Grove Street
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}SoD Elder {FFFFFF}**");
}
case 3://Guest = Grove Street
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}Guest {FFFFFF}**");
SendClientMessage(playerid, 0xFFFFFFAA, "** Enjoy your stay here **");
}
}
}
else
{
ShowPlayerDialog(playerid,DIALOG_RANK,DIALOG_STYLE_LIST,"Choose your rank","a\na\na\na","OK","");
}
return 1;
}
//--------------------------------------------------------------------------------------------------------------------
CMD:as(playerid, params[])
{
ShowPlayerDialog(playerid,DIALOG_RANK,DIALOG_STYLE_LIST,"Choose your rank","a\na\na\na","OK","");
return 1;
}
Re: Dialog won't work -
Sh4d0w2 - 15.11.2015
Still won't work at all.I had define :
PHP код:
#define DIALOG_RANK (1212)
Re: Dialog won't work -
Karan007 - 15.11.2015
Try this:
PHP код:
#define DIALOG_RANK (1212)
Re: Dialog won't work -
Sh4d0w2 - 15.11.2015
Quote:
Originally Posted by Karan007
Try this:
PHP код:
#define DIALOG_RANK (1212)
|
Sorry the last k should be K (edited).Yeah I have define like that.Still didn't work
Re: Dialog won't work -
jlalt - 15.11.2015
you did not understand easy dialog include it should be :
PHP код:
//--------------------------------------------------------------------------------------------------------------------
CMD:as(playerid, params[])
{
//ShowPlayerDialog(playerid,DIALOG_RANK,DIALOG_STYLE_LIST,"Choose your rank","a\na\na","OK","");
Dialog_Show(playerid, DIALOG_RANK, DIALOG_STYLE_LIST, "Choose your rank", "a\na\na", "OK","");
return 1;
}
Dialog:DIALOG_RANK(playerid, response, listitem, inputtext[])
{
if(!response) return Dialog_Show(playerid, DIALOG_RANK, DIALOG_STYLE_LIST, "Choose your rank", "a\na\na", "OK","");
else if(response)
{
switch(listitem)
{
case 0: //LEADER = Police
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}SoD Leader {FFFFFF}**");
}
case 1://CO-Leader = Biker
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}SoD CO-Leader {FFFFFF}**");
}
case 2://Elder = Grove Street
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}SoD Elder {FFFFFF}**");
}
case 3://Guest = Grove Street
{
SendClientMessage(playerid, 0xFFFFFFAA, "** Welcome {33CC33}Guest {FFFFFF}**");
SendClientMessage(playerid, 0xFFFFFFAA, "** Enjoy your stay here **");
}
}
}
return 1;
}
Re: Dialog won't work -
Sh4d0w2 - 15.11.2015
Got this warning now :
PHP код:
\C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : error 001: expected token: ";", but found ")"
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : error 029: invalid expression, assumed zero
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 202: number of arguments does not match definition
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215: expression has no effect
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : error 001: expected token: ";", but found ")"
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : error 029: invalid expression, assumed zero
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215: expression has no effect
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
The code is :
PHP код:
Dialog_Show(playerid, DIALOG_RANK, DIALOG_STYLE_LIST, "Choose your rank", "a\na\na", "OK","");
Re: Dialog won't work -
jlalt - 15.11.2015
remove the
Код:
#define DIALOG_RANK (1212)
Re: Dialog won't work -
Sh4d0w2 - 15.11.2015
Finally my dialog working :O
Thx jlalt,karan and ice