How to .. ? - 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: How to .. ? (
/showthread.php?tid=105507)
How to .. ? -
Zeromanster - 29.10.2009
How could I count the characters from a players name ?
example: Michael_Corleone is 16 characters long, but i need a script to count his automaticly.
Any ideas on how to do this ? Thanks.
Re: How to .. ? -
Correlli - 29.10.2009
pawn Код:
new
myLength;
myLength = strlen("Michael_Corleone");
printf("%i", myLength); // it should display 16.
https://sampwiki.blast.hk/wiki/Scripting...ons_Old#strlen
Re: How to .. ? -
MenaceX^ - 29.10.2009
The 0.3 limit is 20 and not 16.
Re: How to .. ? -
Correlli - 29.10.2009
Quote:
Originally Posted by MenaceX^
The 0.3 limit is 20 and not 16.
|
He's not asking about the limit, he's asking how to check the length of player's name.
Re: How to .. ? -
MenaceX^ - 29.10.2009
Meh, my bad.
Re: How to .. ? -
Zeromanster - 29.10.2009
Thanks, it works.