Commands help - 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: Commands help (
/showthread.php?tid=291097)
Commands help -
FrostDoggy - 18.10.2011
Well , I have started to work on my gamemode and from some filterscripts I found 3 differents type of commands.
1.
Код:
if(strcmp(cmdtext, "/ancommand", true, 10) == 0)
{
//An Command action here
return 1;
}
2.
Код:
COMMAND:ancommand(playerid, params[])
{
different things @ here
return 1;
}
and
3.
Код:
dcmd_ancommand(playerid, params[])
{
different things @ here
return 1'
}
So here are the questions.
1. Wich one are best.
2. For eg I want to convert from case 1 to case 2 how would I do ?
Thanks in advnace.
Re: Commands help -
Mr_Scripter - 18.10.2011
what do you mean? :/
btw, it's [pawn] text [(No Dot".") /pawn]
Re: Commands help -
SmiT - 18.10.2011
I suggest you
y_commands or your second example, wich is called
ZCMD.
Re: Commands help -
nilanjay - 18.10.2011
Quote:
Originally Posted by SmiT
|
I agree with Smit
Re: Commands help -
Wesley221 - 18.10.2011
The fastest command processors, are ZCMD & YCMD. Theyre both the easiest to work with.
Check SmiT's signature for a good tutorial on how to make a command with ycmd & sscanf