Dialog won't work
#1

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(playeridresponselistiteminputtext[])
{
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(playerid0xFFFFFFAA"** Welcome {33CC33}SoD Leader {FFFFFF}**");
}
case 
1://CO-Leader = Biker
{
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}SoD CO-Leader {FFFFFF}**");
}
case 
2://Elder = Grove Street
{
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}SoD Elder {FFFFFF}**");
}
case 
3://Guest = Grove Street
{
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}Guest {FFFFFF}**");
SendClientMessage(playerid0xFFFFFFAA"** Enjoy your stay here **");
}
}
}
return 
1;
}
//--------------------------------------------------------------------------------------------------------------------
CMD:as(playeridparams[])
{
ShowPlayerDialog(playerid,DIALOG_RANK,DIALOG_STYLE_LIST,"Choose your rank","a\na\na","OK","");
return 
1;

Reply
#2

try this

PHP код:
Dialog:DIALOG_RANK(playeridresponselistiteminputtext[])
{
    if(
response)
    {
        switch(
listitem)
        {
            case 
0//LEADER = Police
            
{
                
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}SoD Leader {FFFFFF}**");
            }
            case 
1://CO-Leader = Biker
            
{
                
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}SoD CO-Leader {FFFFFF}**");
            }
            case 
2://Elder = Grove Street
            
{
                
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}SoD Elder {FFFFFF}**");
            }
            case 
3://Guest = Grove Street
            
{
                
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}Guest {FFFFFF}**");
                
SendClientMessage(playerid0xFFFFFFAA"** Enjoy your stay here **");
            }
        }
    }
    else
    {
         
ShowPlayerDialog(playerid,DIALOG_RANK,DIALOG_STYLE_LIST,"Choose your rank","a\na\na\na","OK","");
    }
    return 
1;
}
//--------------------------------------------------------------------------------------------------------------------
CMD:as(playeridparams[])
{
ShowPlayerDialog(playerid,DIALOG_RANK,DIALOG_STYLE_LIST,"Choose your rank","a\na\na\na","OK","");
return 
1;

Reply
#3

Still won't work at all.I had define :
PHP код:
#define DIALOG_RANK (1212) 
Reply
#4

Try this:

PHP код:
#define DIALOG_RANK (1212) 
Reply
#5

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
Reply
#6

you did not understand easy dialog include it should be :

PHP код:
//--------------------------------------------------------------------------------------------------------------------
CMD:as(playeridparams[])
{
//ShowPlayerDialog(playerid,DIALOG_RANK,DIALOG_STYLE_LIST,"Choose your rank","a\na\na","OK","");
Dialog_Show(playeridDIALOG_RANKDIALOG_STYLE_LIST"Choose your rank""a\na\na""OK","");
return 
1;
}
Dialog:DIALOG_RANK(playeridresponselistiteminputtext[])
{
if(!
response) return Dialog_Show(playeridDIALOG_RANKDIALOG_STYLE_LIST"Choose your rank""a\na\na""OK","");
else if(
response)
{
switch(
listitem)
{
case 
0//LEADER = Police
{
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}SoD Leader {FFFFFF}**");
}
case 
1://CO-Leader = Biker
{
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}SoD CO-Leader {FFFFFF}**");
}
case 
2://Elder = Grove Street
{
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}SoD Elder {FFFFFF}**");
}
case 
3://Guest = Grove Street
{
SendClientMessage(playerid0xFFFFFFAA"** Welcome {33CC33}Guest {FFFFFF}**");
SendClientMessage(playerid0xFFFFFFAA"** Enjoy your stay here **");
}
}
}
return 
1;

Reply
#7

Got this warning now :
PHP код:
\C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 202number of arguments does not match definition
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 202number of arguments does not match definition
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 202number of arguments does not match definition
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 202number of arguments does not match definition
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 202number of arguments does not match definition
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : error 001expected token";"but found ")"
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : error 029invalid expressionassumed zero
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(532) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 202number of arguments does not match definition
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 202number of arguments does not match definition
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 202number of arguments does not match definition
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 202number of arguments does not match definition
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 202number of arguments does not match definition
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215expression has no effect
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : error 001expected token";"but found ")"
C:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : error 029invalid expressionassumed zero
C
:\Users\user\Documents\Games\GTA Sanandreas\GTA SA Clan\Server\gamemodes\clan.pwn(539) : warning 215expression has no effect
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase 
The code is :
PHP код:
Dialog_Show(playeridDIALOG_RANKDIALOG_STYLE_LIST"Choose your rank""a\na\na""OK",""); 
Reply
#8

remove the
Код:
#define DIALOG_RANK (1212)
Reply
#9

Finally my dialog working :O
Thx jlalt,karan and ice
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)