Name help.
#3

Код:
stock RemoveUnderScore(id) {    
new name[MAX_PLAYER_NAME];
GetPlayerName(id,name,sizeof(name));
for(new i = 0; i < MAX_PLAYER_NAME; i++) {        
if(name[i] == '_') {
name[i] = ' '; }
}
return
name;}
I might not be understanding you correctly, but it's as simple as changing playerid to id
(Dont forget to change playerid to id in the Forward as well...)

Example usage
Код:
OnPlayerConnect(playerid) { 
RemoveUnderScore(playerid);
return 1; }
Reply


Messages In This Thread
Name help. - by iGetty - 19.07.2011, 17:26
Re: Name help. - by shaikh007 - 19.07.2011, 17:48
Re: Name help. - by XGh0stz - 19.07.2011, 18:27
Re: Name help. - by Amit_B - 19.07.2011, 18:36

Forum Jump:


Users browsing this thread: 1 Guest(s)