Jump to content
SubSpace Forum Network

Recommended Posts

Posted
i am making a plugin that at somepoint needs to output a users name on the screen using objects. So i am going to run through the p->name array and get each character and then output that character. I need a way to figure how many array slots the players name takes up. Can i do this by looping until it encounters an empty array slot, or is there some way to determine the length before looping? any help would be appreciated smile.gif
Posted
the invalid player name function is wrong anyway. The % sign is a legal characer in a name. Also, for any char string the last character is null (aka '\0' or 0), so all that strlen does is run a "for" loop until it gets to the end of the string.
Guest
This topic is now closed to further replies.
×
×
  • Create New...