10.11.2017, 16:08
Hello guys, i made this function to return the player name without the "_" but it returns nothing at all
Here's the code
What's wrong here?
Here's the code
PHP код:
stock RPname(playerid) {
new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, sizeof(playerName));
new RName[MAX_PLAYER_NAME];
for(new i = 0; i < strlen(Name(playerid)); i++) {
if(!strcmp(playerName[i], "_", true)) {
strins(RName, " ", strlen(RName));
}
else {
strcat(RName, playerName[i], strlen(RName));
}
}
return RName;
}