21.05.2015, 11:53
Quote:
if(strlen(inputtext) < 4) return ShowPlayerDialog(playerid, CHANGE_NAME, DIALOG_STYLE_INPUT, "{AA3333}New Name", "Input your new name below\nName must be at least 4 lethers long!:", "Change", "Cancel"); if (dini_Exists(inputtext)) return SendClientMessage(playerid,COLOR_RED,"This User Name Is Taken!"); new name1[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME]; format(name1, sizeof(name1), PLAYERS, PlayerName(playerid)); format(name2, sizeof(name2), PLAYERS, strval(inputtext)); SetPlayerName(playerid,strval(inputtext)); frename(name1, name2); |