calling a cmd - 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: calling a cmd (
/showthread.php?tid=335880)
calling a cmd -
Face9000 - 20.04.2012
Hello,i've maked a dialog_list and with other options i've "Check your stats",i've already a /stats cmd (in dialogs),but with this option in dialog,i wanna call the command /stats (I use ZMCD),so i made this:
pawn Код:
if(listitem == 10) //Check your stats
{
CMD:stats(playerid)
}
But doesn't work.
Re: calling a cmd -
RollTi - 20.04.2012
pawn Код:
cmd_stats(playerid, params);
This forum requires that you wait 120 seconds between posts. Please try again in 48 seconds.
Re: calling a cmd -
Hoss - 20.04.2012
Quote:
Originally Posted by Logitech90
Hello,i've maked a dialog_list and with other options i've "Check your stats",i've already a /stats cmd (in dialogs),but with this option in dialog,i wanna call the command /stats (I use ZMCD),so i made this:
pawn Код:
if(listitem == 10) //Check your stats { CMD:stats(playerid) }
But doesn't work.
|
Add everything from Stats command :
pawn Код:
if(listitem == 10) //Check your stats
{
Here!
}
Re: calling a cmd -
Face9000 - 20.04.2012
Quote:
Originally Posted by RollTi
pawn Код:
cmd_stats(playerid, params);
This forum requires that you wait 120 seconds between posts. Please try again in 48 seconds. 
|
Thanks it works
Re: calling a cmd -
Twisted_Insane - 20.04.2012
Shouldn't it be
pawn Код:
return cmd_stats(playerid, params);
?
Re: calling a cmd -
RollTi - 20.04.2012
Quote:
Originally Posted by Twisted_Insane
Shouldn't it be
pawn Код:
return cmd_stats(playerid, params);
?
|
Not sure but maybe it works

?
Re: calling a cmd -
Calgon - 20.04.2012
pawn Код:
if(listitem == 10) {
return cmd_stats(playerid, "");
}
This should work - your params string is empty.