undefined symbol "ShowDialog"
#1

error
D:\MGO-RP.pwn(92930) : error 017: undefined symbol "ShowDialog"
D:\MGO-RP.pwn(154741) : warning 203: symbol is never used: "CAUDO_1"
D:\MGO-RP.pwn(154741) : warning 203: symbol is never used: "CAUDO_2"
Pawno
PHP код:
CMD:taocaudo(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 3)
    {
         if(
TonTaiCauDo == 0)
           {
            
ShowDialog(playeridShow:CAUDO_1DIALOG_STYLE_INPUT"Tao cau do""Nhap vao cau hoi:""Tiep tuc""Huy bo");
        }
        else 
SendClientMessageEx(playeridCOLOR_GREY"Da co cau do. /xoacaudo de dat cau do moi.");
    }
    else 
SendClientMessageEx(playeridCOLOR_GREY"Ban khong the su dung lenh nay.");
    return 
1;
}
CMD:xoacaudo(playeridparams[])
{
    if (
PlayerInfo[playerid][pAdmin] >= 3)
    {
        if(
TonTaiCauDo == 1)
        {
             
TonTaiCauDo 0;
             
NguoiTaoCauDo INVALID_PLAYER_ID;
            
format(CauDosizeof(CauDo), "None");
            
format(DapAnsizeof(DapAn), "None");
            
SendClientMessageEx(playeridCOLOR_YELLOW"Da xoa cau do.");
        }
        else return 
SendClientMessageEx(playeridCOLOR_GREY"Chua co cau do nao duoc tao.");
    }
    else return 
SendClientMessageEx(playeridCOLOR_GREY"Ban khong the su dung lenh nay.");
    return 
1;
}
Dialog:CAUDO_1(playeridresponselistiteminputtext[])
{
    if(
response)
    {
        if (
isnull(inputtext))
        {
            
SendClientMessageEx(playeridCOLOR_GREY"Ban da huy bo tao cau do.");
            return 
1;
        }
        
format(CauDosizeof(CauDo), inputtext);
        
ShowDialog(playeridShow:CAUDO_2DIALOG_STYLE_INPUT"Tao cau do""Nhap vao dap an""Dong y""Huy bo");
    }
    return 
1;
}
Dialog:CAUDO_2(playeridresponselistiteminputtext[])
{
    if(
response)
    {
        if (
isnull(inputtext))
        {
            
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"Ban da huy bo tao cau do.");
            
format(CauDosizeof(CauDo), "None");
            return 
1;
        }
        new 
str[128];
        
format(DapAnsizeof(DapAn), inputtext);
        
TonTaiCauDo 1;
        
NguoiTaoCauDo playerid;
        
format(strsizeof(str), "{C0CEFF}** CAU DO **{FFFF00}: %s"CauDo);
        
SendClientMessageToAllEx(COLOR_YELLOWstr);
        
SendClientMessageToAllEx(COLOR_YELLOW"{C0CEFF}** CAU DO **{FFFF00}: Su dung /traloicaudo hoac /tl [noi dung] de tra loi");
    }
    else
    {
        
format(CauDosizeof(CauDo), "None");
        
SendClientMessageEx(playeridCOLOR_LIGHTBLUE"Ban da huy bo tao cau do.");
    }
    return 
1;

what ?
Reply
#2

Код:
CMD:taocaudo(playerid, params[]) 
{ 
    if(PlayerInfo[playerid][pAdmin] >= 3) 
    { 
         if(TonTaiCauDo == 0) 
           { 
            ShowPlayerDialog(playerid,CAUDO_1, DIALOG_STYLE_INPUT, "Tao cau do", "Nhap vao cau hoi:", "Tiep tuc", "Huy bo"); 
        } 
        else SendClientMessageEx(playerid, COLOR_GREY, "Da co cau do. /xoacaudo de dat cau do moi."); 
    } 
    else SendClientMessageEx(playerid, COLOR_GREY, "Ban khong the su dung lenh nay."); 
    return 1; 
}
Reply
#3

read: https://sampwiki.blast.hk/wiki/ShowPlayerDialog
Reply
#4

help
Reply
#5

He already helped you by the link he gave you. https://sampwiki.blast.hk/wiki/ShowPlayerDialog it's the default proper way for dialogs.
I am not sure, but it seems like you are using another dialog include, but it's not easyDialog make sure if you used something to help you with dialogs to include it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)