18.09.2009, 12:19
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?
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?