17.06.2017, 20:30
Quote:
Meller, Everything in my gamemode is in sscanf every command so I cannot do it myself thats why I need help for this command and Im beginner in scripting
|
SSCANF in PAWN can separate a variable to give out different variables' parts.
Imagine you've got a command like uh... /kick, it's usually /kick playerid reason
And when you're using a command in PAWN, it spits out params, in this case, so with SSCANF you can separate params to give out the playerid and the reason. It'd work like this:
sscanf(params, "is[86]", playerid, reason);
The "i" is an integer which in this case is playerid.
The "s[86]" is for the reason, in this case, the 86 is the string limit, in your command you just type the command without any params after, giving no need for SSCANF to separate the string.