07.08.2009, 23:24
Thanks for the first solution
Okay, about second thing.
I would like to make a command '/give'.
When someone types '/give' it will show him client message "/give [option] [playerid]" (options are something and something else). If he types '/give nothing' he will get client message "Wrong option". If he writes '/give something' he will get client message "/give something [playerid]".
Basically I want to set client message for each parameter filled up. If I use sscanf it will always show "/give [option] [playerid]" until all the parameters are filled up and then it will look further for any if's.
Okay, about second thing.
I would like to make a command '/give'.
When someone types '/give' it will show him client message "/give [option] [playerid]" (options are something and something else). If he types '/give nothing' he will get client message "Wrong option". If he writes '/give something' he will get client message "/give something [playerid]".
Basically I want to set client message for each parameter filled up. If I use sscanf it will always show "/give [option] [playerid]" until all the parameters are filled up and then it will look further for any if's.