23.05.2014, 11:56
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
what ?
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(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
if(TonTaiCauDo == 0)
{
ShowDialog(playerid, Show: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;
}
CMD:xoacaudo(playerid, params[])
{
if (PlayerInfo[playerid][pAdmin] >= 3)
{
if(TonTaiCauDo == 1)
{
TonTaiCauDo = 0;
NguoiTaoCauDo = INVALID_PLAYER_ID;
format(CauDo, sizeof(CauDo), "None");
format(DapAn, sizeof(DapAn), "None");
SendClientMessageEx(playerid, COLOR_YELLOW, "Da xoa cau do.");
}
else return SendClientMessageEx(playerid, COLOR_GREY, "Chua co cau do nao duoc tao.");
}
else return SendClientMessageEx(playerid, COLOR_GREY, "Ban khong the su dung lenh nay.");
return 1;
}
Dialog:CAUDO_1(playerid, response, listitem, inputtext[])
{
if(response)
{
if (isnull(inputtext))
{
SendClientMessageEx(playerid, COLOR_GREY, "Ban da huy bo tao cau do.");
return 1;
}
format(CauDo, sizeof(CauDo), inputtext);
ShowDialog(playerid, Show:CAUDO_2, DIALOG_STYLE_INPUT, "Tao cau do", "Nhap vao dap an", "Dong y", "Huy bo");
}
return 1;
}
Dialog:CAUDO_2(playerid, response, listitem, inputtext[])
{
if(response)
{
if (isnull(inputtext))
{
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da huy bo tao cau do.");
format(CauDo, sizeof(CauDo), "None");
return 1;
}
new str[128];
format(DapAn, sizeof(DapAn), inputtext);
TonTaiCauDo = 1;
NguoiTaoCauDo = playerid;
format(str, sizeof(str), "{C0CEFF}** CAU DO **{FFFF00}: %s", CauDo);
SendClientMessageToAllEx(COLOR_YELLOW, str);
SendClientMessageToAllEx(COLOR_YELLOW, "{C0CEFF}** CAU DO **{FFFF00}: Su dung /traloicaudo hoac /tl [noi dung] de tra loi");
}
else
{
format(CauDo, sizeof(CauDo), "None");
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Ban da huy bo tao cau do.");
}
return 1;
}