Case - 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: Case (
/showthread.php?tid=654645)
Case -
Mo123 - 02.06.2018
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?
Re: Case -
iSpark - 02.06.2018
If the command is let's say
CMD:kill(playerid, params[])
Then it should be "return cmd_kill(playerid, "");
Re: Case -
Livity - 03.06.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
}