[Include] cmdparam - The simplest command splitter
#9

Quote:
Originally Posted by Incubator
Посмотреть сообщение
Whoa, chill out, you treat this like I made some sin by releasing this. Hell, if someone is still affixed on the strtok-kind of splitters and prefers this method over some more speed of others (not that cmdparam is that slow), he may choose to use this!
If someone gonna rescript his script from strtok to something else it will be sscanf for sure.
By the way isnt sscanf just way better?

pawn Код:
new string[24],integer,OptionalString[24],OptionalInteger;
sscanf(cmdtext, "s[24]dS[24](Empty)D(0)", string , integer, OptionalString , OptionalInteger);
Also there are many more combinations its just a example...
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)