HELP WITH COMMAND
#4

Quote:
Originally Posted by HellixBG
View Post
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
Yeah, but this command doesn't require SSCANF. I believe you've not got a clear explanation of what SSCANF actually is, so here's a blunt explanation:

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.
Reply


Messages In This Thread
HELP WITH COMMAND - by HellixBG - 17.06.2017, 20:12
Re: HELP WITH COMMAND - by Meller - 17.06.2017, 20:17
Re: HELP WITH COMMAND - by HellixBG - 17.06.2017, 20:26
Re: HELP WITH COMMAND - by Meller - 17.06.2017, 20:30
Re: HELP WITH COMMAND - by Sew_Sumi - 17.06.2017, 21:56

Forum Jump:


Users browsing this thread: 1 Guest(s)