DCMD Help!
#1

Hello again! OK, i have a question about DCMD thinks... For example on this script:
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
     dcmd(test, 4, cmdtext); // why 4 and not 6?
     return 0;
}


dcmd_test(playerd, params[])
{
     print("Hello");
     return 1;
}
It have dcmd(test, 4, cmdtext) // Why 4 and not 6 for example? and how to define what cmd do? How cmd know what to do? I want to make a setmoney cmd but i realy can't....... Please explain me something about this type od cmds
Reply


Messages In This Thread
DCMD Help! - by Ricardo187 - 16.12.2010, 17:03
Re: DCMD Help! - by blackwave - 16.12.2010, 17:20
Re: DCMD Help! - by Ricardo187 - 16.12.2010, 17:24
Re: DCMD Help! - by [L3th4l] - 16.12.2010, 17:24
Re: DCMD Help! - by Ricardo187 - 16.12.2010, 17:32
Re: DCMD Help! - by blackwave - 16.12.2010, 17:36
Re: DCMD Help! - by Ricardo187 - 16.12.2010, 17:43
Re: DCMD Help! - by blackwave - 16.12.2010, 17:50
Re: DCMD Help! - by Ricardo187 - 16.12.2010, 17:55
Re: DCMD Help! - by blackwave - 16.12.2010, 17:59

Forum Jump:


Users browsing this thread: 2 Guest(s)