OnDialogResponse - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnDialogResponse (
/showthread.php?tid=477266)
OnDialogResponse -
aDo7 - 23.11.2013
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:
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", "");
}
}
}
}
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?
Re: OnDialogResponse -
Stinged - 23.11.2013
Can you please post your command?
Re: OnDialogResponse -
aDo7 - 23.11.2013
Quote:
Can you please post your command?
|
I Already Posted it, or which one you want me post?
Re: OnDialogResponse -
Stinged - 23.11.2013
Quote:
Originally Posted by aDo7
I Already Posted it, or which one you want me post?
|
pawn Код:
CMD:yourcommand(playerid, params[])
{
// What you did
return 1;
}
^ That command
Re: OnDialogResponse -
aDo7 - 23.11.2013
I think you wont ads cmds, and if you got it , it won't be helpful i just want to complete this cmds
Re: OnDialogResponse -
Stinged - 23.11.2013
Well, I don't really understand what you mean.
Re: OnDialogResponse -
ikbenremco - 23.11.2013
Show us this command:
cmd:ads
Re: OnDialogResponse -
DanishHaq - 23.11.2013
You need to make the responses through 1441 to 1444 dialogs too... It won't work by magic.
Re: OnDialogResponse -
aDo7 - 23.11.2013
I Belive that it won't work by magic else,
Quote:
You need to make the responses through 1441 to 1444 dialogs too
|
But i cant make anymore thing else, that the reason why i post it here, to get help!!
Re: OnDialogResponse -
Stinged - 23.11.2013
You want help.. I need to see your command before I can do anything.