calling a cmd
#1

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

pawn Код:
cmd_stats(playerid, params);
This forum requires that you wait 120 seconds between posts. Please try again in 48 seconds.
Reply
#3

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!
            }
Reply
#4

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
Reply
#5

Shouldn't it be

pawn Код:
return cmd_stats(playerid, params);
?
Reply
#6

Quote:
Originally Posted by Twisted_Insane
Посмотреть сообщение
Shouldn't it be

pawn Код:
return cmd_stats(playerid, params);
?
Not sure but maybe it works ?
Reply
#7

pawn Код:
if(listitem == 10) {
   return cmd_stats(playerid, "");
}
This should work - your params string is empty.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)