Changename Problem
#10

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);

You have to add STRVAL to SetPlayerName and format(name2..
Reply


Messages In This Thread
Changename Problem - by kalanerik99 - 19.05.2015, 17:06
Re: Changename Problem - by azzerking - 19.05.2015, 18:09
Re: Changename Problem - by kalanerik99 - 19.05.2015, 18:45
Re: Changename Problem - by azzerking - 19.05.2015, 18:51
Re: Changename Problem - by Konstantinos - 19.05.2015, 19:01
Re: Changename Problem - by kalanerik99 - 19.05.2015, 20:24
Re: Changename Problem - by kalanerik99 - 20.05.2015, 13:44
Re: Changename Problem - by kalanerik99 - 21.05.2015, 08:33
Re: Changename Problem - by Konstantinos - 21.05.2015, 09:56
Re: Changename Problem - by kyriakos587 - 21.05.2015, 11:53

Forum Jump:


Users browsing this thread: 1 Guest(s)