23.02.2019, 01:09
pawn Код:
Player[playerid][GlobalName] = strval(inputtext);
format(Query, sizeof(Query), "UPDATE db_players SET Username = '%q' WHERE Username = '%q'", inputtext, Player[playerid][GlobalName]);
db_query(PlayersDB, Query);
format(string, sizeof(string), "Your new name is: %s", inputtext);
ShowPlayerDialog(playerid, D_INFO, DIALOG_STYLE_MSGBOX, "Name changed!", string, "Confirm", "Cancel");
SetPlayerName(playerid, inputtext);
Код:
[02:04:59] [db_log_queries]: UPDATE db_players SET Username = 'fazr' WHERE Username = ''