Posts: 87
Threads: 34
Joined: Sep 2013
Reputation:
0
So I have created a command and I'd like it to be used through a responsive dialog. I have created the rows within the dialog, but how do I make it so the case 0: actually links up with the seperate command I've created?
Posts: 41
Threads: 9
Joined: Apr 2017
Reputation:
0
If the command is let's say
CMD:kill(playerid, params[])
Then it should be "return cmd_kill(playerid, "");
Posts: 22
Threads: 1
Joined: May 2018
Quote:
Originally Posted by iSpark
If the command is let's say
CMD:kill(playerid, params[])
Then it should be "return cmd_kill(playerid, "");
|
This is how it would look
PHP код:
switch(listitem)
{
case 0:
{
return cmd_kill(playerid);
}
case 1:
{
SendClientMessage(playerid,-1,"Hello Mate");
}
//continue the switches here
}