08.03.2014, 17:06
if it's dialog then it should be : put them under the dialog thing
dini _remove deletes his current name,and i set it to change his name to the name he wanted
pawn Код:
format(file,sizeof(file),"%s.ini",inputtext);
if(!dini_Exists(file))
{
format(file2,sizeof(file2),"%s.ini",pname);
dini_Remove(file2);
SetPlayerScore(playerid, dini_Int(file, "Score")); // This describes where to load the score
SetPlayerCash(playerid, dini_Int(file, "Money"));
SetPlayerName(playerid, inputtext);
return 1;
}
else if(dini_Exists(file))
{
SendClientMessage(playerid, -1, "This name is already registered,please choose another name");
return 1;
}