04.08.2011, 19:25
Quote:
Heres a simple understanding to sscanf.. heres an example..
we have the variables, reason and target.. target will be the person we want banned, and reason is going to be the reason, and its a string. sscanf(params, "us", target, reason); now what that does is, it grabs the params and makes the first param become the target, and the second become reason. . and the "us" is just defining what the two params are, u "user", s "string" .. So when you do Ban(target) it would ban what ever you put as the first param IE, /cmd FIRST SECOND .. so it'd ban "FIRST" .. though obviously that wouldn't work as you need the variable to be a ID. edit: Or what made man said. |
It seems so simple when you write it
Thanks to Mademan and PrawkC
Edit:
I use y_cmd i think its better for me to learn the latest systems
but Thanks Tigerkiller