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


Messages In This Thread
Commands help - by FrostDoggy - 18.10.2011, 13:54
Re: Commands help - by Mr_Scripter - 18.10.2011, 13:55
Re: Commands help - by SmiT - 18.10.2011, 13:58
Re: Commands help - by nilanjay - 18.10.2011, 14:02
Re: Commands help - by Wesley221 - 18.10.2011, 14:03

Forum Jump:


Users browsing this thread: 2 Guest(s)