07.05.2009, 01:43
Alright, Some I'm trying to make it so that when a person connects, it makes turns their name to GUEST[playerid], which works. Until they login on which I want it to change it back to normal.
OnPlayerConnect
This works, but when it runs this code, it doesn't change the player's name back to normal
Whats wrong here or can the name only be changed once?
OnPlayerConnect
Код:
// Setting the player's name into pInfo GetPlayerName(playerid, pInfo[playerid][name],MAX_PLAYER_NAME); // Setting a placeholder name until they register or login new temporaryname[MAX_PLAYER_NAME]; format(temporaryname, MAX_PLAYER_NAME, "Guest[%d]", playerid); SetPlayerName(playerid, temporaryname);
Код:
new namestring[MAX_PLAYER_NAME]; format(namestring, MAX_PLAYER_NAME, "%s", pInfo[playerid][name]); SetPlayerName(playerid, namestring);
Whats wrong here or can the name only be changed once?