[HELP] command - 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)
+--- Thread: [HELP] command (
/showthread.php?tid=483655)
[HELP] command -
Luca12 - 27.12.2013
Hello I try make command car tune but I don't wan't together command cartune I want seperate car tune if you know what I mean. So I want seperate car and tune
pawn Код:
so it's go like this
CMD:cartune
instead of that I want
CMD:car tune --- but It can't go like this
Re: [HELP] command -
Flaken - 27.12.2013
It's not possible at all, atleast from my experiences.
Re: [HELP] command -
ToiletDuck - 27.12.2013
This will work, player must type /car tune but if he type /car it says USAGE: /car tune
pawn Код:
CMD:car(playerid, params[])
{
new text[5];
if(sscanf(params, "s[5]", text))
{
SendClientMessage(playerid, -1, "USAGE: /car tune");
return 1;
}
if(strcmp(text, "tune", true) == 0)
{
//Rest of the codes
return 1;
}
return 1;
}
Re: [HELP] command - Emmet_ - 27.12.2013
Not necessary to use sscanf.
pawn Код:
CMD:car(playerid, params[])
{
if (!isnull(params) && !strcmp(params, "tune", true))
{
// ...
}
return 1;
}