Spaces in commands
#1

Hey!
How can I make spaces in commands? Like /weapons AK?
Thanks!

btw I use SScanf and ZCMD
Reply
#2

With the space key?
Reply
#3

lol, that gives me errors ?
Reply
#4

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;
}
Reply
#5

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
Reply
#6

too late
Reply
#7

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
Reply
#8

cameltoe answered you..
read his answer again
Reply
#9

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)