RP name help
#1

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(playeridplayerNamesizeof(playerName));
    new 
RName[MAX_PLAYER_NAME];
    for(new 
0strlen(Name(playerid)); i++) {
        if(!
strcmp(playerName[i], "_"true)) {
            
strins(RName" "strlen(RName));
        }
        else {
            
strcat(RNameplayerName[i], strlen(RName));
        }
    }
    return 
RName;

What's wrong here?
Reply


Messages In This Thread
RP name help - by Arbico - 10.11.2017, 16:08
Re: RP name help - by JustNothing - 10.11.2017, 16:21
Re: RP name help - by Arbico - 10.11.2017, 16:34
Re: RP name help - by JustNothing - 10.11.2017, 16:48
Re: RP name help - by Arbico - 10.11.2017, 16:53
Re: RP name help - by Arbico - 10.11.2017, 17:13
Re: RP name help - by Arbico - 10.11.2017, 17:25
Re: RP name help - by PeterLinkson - 10.11.2017, 17:27
Re: RP name help - by Arbico - 10.11.2017, 17:31
Re: RP name help - by n00blek - 10.11.2017, 19:39

Forum Jump:


Users browsing this thread: 1 Guest(s)