10.11.2017, 17:44 
	
	
	
		Note: I posted this before, but people seem to stop replying, and i still need help
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?
	
	
	
	
Hello guys, i made this function to return the player name without the "_" but it returns nothing at all
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; 
} 






