Commands help
#1

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

what do you mean? :/
btw, it's [pawn] text [(No Dot".") /pawn]
Reply
#3

I suggest you y_commands or your second example, wich is called ZCMD.
Reply
#4

Quote:
Originally Posted by SmiT
Посмотреть сообщение
I suggest you y_commands or your second example, wich is called ZCMD.
I agree with Smit
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)