Calling a command
#1

Hi!
I'm using ZCMD.
How can I call a textcommand from a function?
Like when someone types /dosome - it will go to ... actually I don't know where it goes and that is the problem, but the function dosome is defined by zcmd(dosome, playerid, params[]) {... }
How can I call this command inside a function?
Like something OnPlayerCommandText(playerid, "/dosome");
Also I need the params...
So format(text, 256, "/dosome %d", playerid);
OnPlayerCommandText(playerid, text);
but doesn't work... any other ideas?
Reply


Messages In This Thread
Calling a command - by potato - 18.09.2009, 12:19
Re: Calling a command - by Correlli - 18.09.2009, 12:27
Re: Calling a command - by potato - 18.09.2009, 12:29
Re: Calling a command - by Correlli - 18.09.2009, 12:31
Re: Calling a command - by potato - 18.09.2009, 12:35

Forum Jump:


Users browsing this thread: 1 Guest(s)