10.11.2017, 16:53
Quote:
How you used it? Because I just tested it and for me it works...
|
i even added a client message in the stock so i know if the condition is working or not, and it does send the message, but it just return null
PHP код:
stock RPname(playerid) {
new playerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);
for(new c; c < strlen(playerName); c++) {
if(playerName[c] == '_') {
playerName[c] = ' ';
SendClientMessage(playerid, Message, "Condition is true");
}
}
return playerName;
}