#1

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?
Reply
#2

If the command is let's say

CMD:kill(playerid, params[])

Then it should be "return cmd_kill(playerid, "");
Reply
#3

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

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)