15.03.2015, 15:50
You don't need to return anything else than 1 in this case. Simply, do this:
pawn Код:
public OnPlayerConnect(playerid) {
GetPlayerName(playerid, savedplayerdata[playerid][pName], sizeof(savedplayerdata[playerid][pName]));
strreplace(savedplayerdata[playerid][pName], "_", " "); // be careful here! if you save the name, for example using this variable, you will have problems.
return 1;
}