SA-MP Forums Archive
Help with license plate change code - 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: Help with license plate change code (/showthread.php?tid=397375)



Help with license plate change code - Xandelee - 04.12.2012

Can someone help with it please, i need to make this cmd not allow the player put more than 8 characters on the license plate but i dont know how to do it


Re: Help with license plate change code - Bakr - 04.12.2012

Check the length of the string using strlen(). You should also consider using a command processor library, such as ZCMD or YCMD.

strlen() - https://sampwiki.blast.hk/wiki/strlen


Re: Help with license plate change code - Xandelee - 04.12.2012

Thanks for the tip i did it, works correct. Rep+