What does this mean?
#1

Hey,
I have been wondering in a DCMD command what does this mean?
Код:
dcmd(pm, 1, cmdtext);
What does the mean?
Код:
, 1,
Thanks.
Reply
#2

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?
Код:
, 1,
Thanks.
Its
Код:
dcmd(commandname, length_of_commandname, cmdtext[]);
so to your example, it would be correctly

pawn Код:
dcmd(pm, 2, cmdtext);
PS: Dont use strlen("pm") its a waste for a constant length
Reply
#3

Quote:
Originally Posted by Nero_3D
Посмотреть сообщение
Its
Код:
dcmd(commandname, length_of_commandname, cmdtext[]);
so to your example, it would be correctly

pawn Код:
dcmd(pm, 2, cmdtext);
PS: Dont use strlen("pm") its a waste for a constant length
Thanks
Reply
#4

And BTW, you need to exclude the "/" in command lenth.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)