12.04.2009, 18:46
How to make this in dcmd? (Two commands for one function...) if(strcmp(cmd, "/change", true) == 0 || strcmp(cmd, "/force", true) == 0)
dcmd_one( playerid, params[] )
{
dcmd_two( playerid, params );
.....
dcmd_two( playerid, params[] )
{
RunMyFunction();
.....
dcmd_force(playerid,params[]) return dcmd_change(playerid,params);
Originally Posted by иєσz
Код:
dcmd_force(playerid,params[]) return dcmd_change(playerid,params); |
// Instead of
dcmd(command, 7, cmdtext);
// You can use
dcmd(command, 7, cmdtext, dcmd function to call);