Console command.
#3

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
When you do !setlevel 0 1 then cmd[] = "!setlevel 0 1"

sscanf sees that "!setlevel" is not a number and gives an error. If you use quiet, it will skip this part and go to "0 1"
I see, now that makes perfect sense, forgot that there was no params param in OnRconCommand.

So i could do even if ( sscanf( cmd[ strlen("!setlevel") ], ... )


Right? Of course i would change with the right value instead of using strlen.

Thanks!
Reply


Messages In This Thread
Console command. - by Zh3r0 - 03.05.2011, 16:35
Re: Console command. - by MadeMan - 03.05.2011, 16:45
Re: Console command. - by Zh3r0 - 03.05.2011, 16:49
Re: Console command. - by MadeMan - 03.05.2011, 16:52
Re: Console command. - by Zh3r0 - 03.05.2011, 17:03

Forum Jump:


Users browsing this thread: 1 Guest(s)