Spaces in commands - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Spaces in commands (
/showthread.php?tid=227414)
Spaces in commands -
rubygta - 17.02.2011
Hey!
How can I make spaces in commands? Like /weapons AK?
Thanks!
btw I use SScanf and ZCMD
Re: Spaces in commands -
Macluawn - 17.02.2011
With the space key?
Re: Spaces in commands -
rubygta - 17.02.2011
lol, that gives me errors ?
Re: Spaces in commands -
Cameltoe - 17.02.2011
Quote:
Originally Posted by Macluawn
With the space key?

|
LOL.
pawn Код:
command(weapon, playerid, params[])
{
new wID;
sscanf(params, "i", wID)) return SendClientMessage(playerid, COLOR_WHITE, "Usage: /weapon [ Weapon ID ]");
// Check wep model here..
// Give wep here
return 1;
}
Re: Spaces in commands -
77ther - 17.02.2011
You can, if you want to make /weapons ak and /weapons m4 etc.
use the way /use is made, /weapons [name] and you choose which weapon..
if you know what do I mean
Re: Spaces in commands -
justsomeguy - 17.02.2011
too late
Re: Spaces in commands -
rubygta - 17.02.2011
That didn't answer my question I just wanna make an /weapons AK and thats it, I just want a space. Thank you for the replies tho
Re: Spaces in commands -
77ther - 17.02.2011
cameltoe answered you..
read his answer again
Re: Spaces in commands -
rubygta - 17.02.2011
Quote:
Originally Posted by 77ther
cameltoe answered you..
read his answer again
|
I didn't understand his one..
idk how I can check the number they type in.
Re: Spaces in commands -
77ther - 17.02.2011
Quote:
Originally Posted by rubygta
I didn't understand his one..
|
he gave you option to make multiple cmd's..
but you can only create it for AK47 so it will be /weapons ak47
you have to add few more lines, he explained it in comments
you can look for similiar commands in some script, maybe that will help you learn