23.11.2013, 09:11
Hi,
I need help with [OnDialogResponse] , i tried to make cmd:ads to my Roleplay server and some guys helped me with that but when i arrived to [OnDialogResponse] No one can help me!, So i tried to make it by myself and i cant success with it,...
Commands:
But it's not complete, i want when any one write cmd:ads and see the dialog, when he choose Priority Advertisement and write on it i want all players to see adv but i can't make this one same with anothers so if any one can help me, please help?
I need help with [OnDialogResponse] , i tried to make cmd:ads to my Roleplay server and some guys helped me with that but when i arrived to [OnDialogResponse] No one can help me!, So i tried to make it by myself and i cant success with it,...
Commands:
PHP код:
if(dialogid == DIALOG_ADMAIN)
{
if(response)
{
switch(listitem)
{
case 0:
{
ShowPlayerDialog(playerid, 1441, DIALOG_STYLE_MSGBOX, "List Advertisements", "Change this", "Close", "");
}
case 1:
{
ShowPlayerDialog(playerid, 1442, DIALOG_STYLE_MSGBOX, "Search Advertisements", "Change this", "Close", "");
}
case 2:
{
ShowPlayerDialog(playerid, 1443, DIALOG_STYLE_INPUT, "Place Advertisement", "You Can Place Your Advertisement", "Close", "");
}
case 3:
{
ShowPlayerDialog(playerid, 1444, DIALOG_STYLE_INPUT, "Place Priority Advertisement", "You Can Place Your Priority Advertisement", "Close", "");
}
}
}
}