Command doesn't read the parameters correctly [+REP]
#1

Hi guys,
I'm trying to make a command work, but it seems like the parameters are not synced when using the command or whatsoever.
Basically, when using the command /startlottery, an admin is required to enter the following parameters by order: Minimum, Maximum, WinningTicket, Fee, Prize. If one of these or more wasn't typed in, it should print out to the admin on chat the following string:
[Minimum] [Maximum] [WinningTicket] [EntryFee] [Prize], SS:


However, when the commend is used properly(when all parameters were inputted correctly), the command fail to operate(It doesn't actually work and start a lottery), it re-prints the same syntax msg, SS:
:

Here's the script of the Stack and the Command of the lottery creation, I hope you'll notice what's wrong in the script that makes it happen: http://pastebin.com/wTYrLJdS

P.S Here's the SCP stack:
PHP код:
stock SCP(_id_param[], _command[] = "")
{
    
format(iStrsizeof(iStr), "{6a696a}[Command]: /%s {9c9a9c}%s"_command_param);
    return 
SendMessageToPlayer(_idCOLOR_LIGHTGREYiStr128);

I'll +REP the helpers, THANKS! <:
Reply


Messages In This Thread
Command doesn't read the parameters correctly [+REP] - by Amit1998 - 28.02.2016, 20:36
Re: Command doesn't read the parameters correctly [+REP] - by xEF - 04.03.2016, 10:45
Re: Command doesn't read the parameters correctly [+REP] - by MicroKyrr - 04.03.2016, 10:55
Re: Command doesn't read the parameters correctly [+REP] - by Virtual1ty - 04.03.2016, 12:20
Re: Command doesn't read the parameters correctly [+REP] - by Amit1998 - 04.03.2016, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)