SA-MP Forums Archive
DCMD - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: DCMD (/showthread.php?tid=155328)



DCMD - Antonio [G-RP] - 18.06.2010

I recently started using DCMD, and I'm doing very well, but I came accross something I cannot figure out.

For dcmd.. I have..

pawn Код:
dcmd_opengate(playerid, ******)
But I don't know what to put there, because It doesn't require input/params, and when I put either of those I get warnings.. help please?


Re: DCMD - Goobiiify - 18.06.2010

Set this on top of your script;
pawn Код:
#pragma unused params
And then you can use it like this way
pawn Код:
dcmd_opengate(playerid, params[])



Re: DCMD - MenaceX^ - 18.06.2010

Quote:
Originally Posted by »Goobii«
Set this on top of your script;
pawn Код:
#pragma unused params
And then you can use it like this way
pawn Код:
dcmd_opengate(playerid, params[])
In my opinion inside the command itself is better than where you said.


Re: DCMD - Antonio [G-RP] - 18.06.2010

Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by »Goobii«
Set this on top of your script;
pawn Код:
#pragma unused params
And then you can use it like this way
pawn Код:
dcmd_opengate(playerid, params[])
In my opinion inside the command itself is better than where you said.
True, aha, if I put outside the command it would fuck up, anyways thanks guys


Re: DCMD - Antonio [G-RP] - 18.06.2010

New problem, Its more of a question..

whats the difference between 'input' and 'params' ?


Re: DCMD - Niixie - 18.06.2010

Where do you wanna use input?


Re: DCMD - Antonio [G-RP] - 18.06.2010

Idk what the difference is, params or input


Re: DCMD - TheInnocentOne - 18.06.2010

If you want to call the dcmd command from outside OnPlayerCommandText, just do:
pawn Код:
dcmd_yourcommand(playerid, " ");