i need a little 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: i need a little help (
/showthread.php?tid=358795)
i need a little help -
Toby_Manley - 11.07.2012
hello does anyone have a link to the dcmd include?
Re: i need a little help -
ReneG - 11.07.2012
pawn Код:
#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1] == ' ') && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
Though may I ask why you're using it?
It's old and deprecated by the sa-mp community. Look at zcmd, or ycmd.
Re: i need a little help -
Mr.Fames - 11.07.2012
This maybe useful
Re: i need a little help -
Toby_Manley - 11.07.2012
its for admin cmds
Re: i need a little help -
Toby_Manley - 11.07.2012
how to i convert it to zcmd? do i just change the dcmd_(command) to CMD
Command)?
Re: i need a little help -
Scrillex - 11.07.2012
Yeah that's all
CMD:enter(playerid, params[], help)
Re: i need a little help -
Toby_Manley - 11.07.2012
whats the help) about?
Re: i need a little help -
Mr.Fames - 11.07.2012
Quote:
Originally Posted by Scrillex
Yeah that's all CMD:enter(playerid, params[], help)
|
You don't need the help parameter (it is for y_commands) if you are using zcmd you do
pawn Код:
CMD:example(playerid, params[])