Split text in two - returns я?
#4

Actually sscanf is not necessary when the parameter is a single string. You can use:
pawn Код:
if (!isnull(params)) return UsageMSG(playerid, "/do [action]");
and you just use "params" instead of "action".

Another thing to note is the foreach syntax you are using is deprecated. Use:
pawn Код:
foreach(new i : Player)
Reply


Messages In This Thread
Split text in two - returns я? - by TheBigFive - 04.08.2016, 22:52
Re: Split text in two - returns я? - by AndySedeyn - 04.08.2016, 22:59
Re: Split text in two - returns я? - by TheBigFive - 04.08.2016, 23:01
Re: Split text in two - returns я? - by Konstantinos - 04.08.2016, 23:08

Forum Jump:


Users browsing this thread: 2 Guest(s)