SA-MP Forums Archive
How to know how many characters name has - 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 know how many characters name has (/showthread.php?tid=264229)



How to know how many characters name has - ||123|| - 25.06.2011

How to know how many characters someone's name has..for eg. playerid's name characters.


Re: How to know how many characters name has - playbox12 - 25.06.2011

pawn Код:
new name[MAX_PLAYER_NAME], string[44];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s's name contains %d characters",name, strlen(name));
    SendClientMessageToAll(0xFFFF00AA, string);



Re: How to know how many characters name has - ||123|| - 25.06.2011

Thanks.