Command length - 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: Command length (
/showthread.php?tid=110018)
Command length -
patchkinson - 23.11.2009
Hey, hey, i have lke /hjgh do kickplayer(playerid) but i put it to length 3 or something and it does the kick player if we do /hjg only!
how do i make it to kickplayer if we write anythin with atleast hjgh, like /hgjh=kick /hgjh asdsd dsf=Kick /hgj=Not kick
how do i make that?
Re: Command length -
CJ101 - 23.11.2009
Код:
if (strcmp("/hjgh", cmdtext, true, 5) == 0)
Re: Command length -
patchkinson - 23.11.2009
i tried and only works if i only do 5 words!
Re: Command length -
Rac3r - 24.11.2009
Quote:
Originally Posted by patchkinson
i tried and only works if i only do 5 words!
|
Quote:
Originally Posted by CJ101
if (strcmp("/hjgh", cmdtext, true, 5) == 0)
|
hj
gh
Re: Command length -
MenaceX^ - 24.11.2009
You can just skip this part.