What does this mean? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: What does this mean? (
/showthread.php?tid=197285)
What does this mean? -
Tessar - 08.12.2010
Hey,
I have been wondering in a DCMD command what does this mean?
Код:
dcmd(pm, 1, cmdtext);
What does the mean?
Thanks.
Re: What does this mean? -
Nero_3D - 08.12.2010
Quote:
Originally Posted by Tessar
Hey,
I have been wondering in a DCMD command what does this mean?
Код:
dcmd(pm, 1, cmdtext);
What does the mean?
Thanks.
|
Its
Код:
dcmd(commandname, length_of_commandname, cmdtext[]);
so to your example, it would be correctly
PS: Dont use strlen("pm") its a waste for a constant length
Re: What does this mean? -
Tessar - 08.12.2010
Quote:
Originally Posted by Nero_3D
Its
Код:
dcmd(commandname, length_of_commandname, cmdtext[]);
so to your example, it would be correctly
PS: Dont use strlen("pm") its a waste for a constant length
|
Thanks
Re: What does this mean? -
Mean - 08.12.2010
And BTW, you need to exclude the "
/" in command lenth.