[Pawn] dcmd help - 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)
+--- Thread: [Pawn] dcmd help (
/showthread.php?tid=331534)
[Pawn] dcmd help -
squomp - 05.04.2012
dcmd(id, len, cmdtext); what number does len have to be because when I do this
dcmd(register, 8, cmdtext);
dcmd(login, 5, cmdtext);
dcmd(pay,3,cmdtext);
dcmd(id, 2, cmdtext);
dcmd(tele, 4, cmdtext);
dcmd(ptele, 6, cmdtext);
most of my commands work but when its this -
dcmd(register, 8, cmdtext);
dcmd(login, 5, cmdtext);
dcmd(pay,3,cmdtext);
dcmd(id, 1, cmdtext);
dcmd(tele, 4, cmdtext);
dcmd(ptele, 4, cmdtext);
only one might work, can someone please define how dcmd works to me.
Re: [Pawn] dcmd help -
Psymetrix - 05.04.2012
len is the length of your command, register being 8 characters and login 5.
Re: [Pawn] dcmd help -
squomp - 05.04.2012
cool thanks
Re: [Pawn] dcmd help -
squomp - 05.04.2012
yes my script actually fully works now, awesome thank you so much
Re: [Pawn] dcmd help -
captainjohn - 05.04.2012
Example.
"That line basically declares the command, it checks the variable cmdtext to see if you typed /heal, the number 4 is the length of the word "heal", the word "heal" (without double quotes) is both the command to type and part of the function to call."
https://sampwiki.blast.hk/wiki/Fast_Commands