How to .. ?
#1

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.
Reply
#2

pawn Код:
new
    myLength;

myLength = strlen("Michael_Corleone");

printf("%i", myLength); // it should display 16.
https://sampwiki.blast.hk/wiki/Scripting...ons_Old#strlen
Reply
#3

The 0.3 limit is 20 and not 16.
Reply
#4

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.
Reply
#5

Meh, my bad.
Reply
#6

Thanks, it works.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)