#1

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

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[])
Reply
#3

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

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
Reply
#5

New problem, Its more of a question..

whats the difference between 'input' and 'params' ?
Reply
#6

Where do you wanna use input?
Reply
#7

Idk what the difference is, params or input
Reply
#8

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


Forum Jump:


Users browsing this thread: 1 Guest(s)