HElp For Change name
#4

if it's dialog then it should be : put them under the dialog thing
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;
}
dini _remove deletes his current name,and i set it to change his name to the name he wanted
Reply


Messages In This Thread
HElp For Change name - by alishvasis - 08.03.2014, 14:02
Re: HElp For Change name - by XK - 08.03.2014, 15:14
Re: HElp For Change name - by alishvasis - 08.03.2014, 16:44
Re: HElp For Change name - by XK - 08.03.2014, 17:06
Re: HElp For Change name - by alishvasis - 08.03.2014, 17:10
Re: HElp For Change name - by XK - 08.03.2014, 17:12
Re: HElp For Change name - by alishvasis - 08.03.2014, 17:28
Re: HElp For Change name - by XK - 08.03.2014, 17:33
Re: HElp For Change name - by alishvasis - 08.03.2014, 17:43

Forum Jump:


Users browsing this thread: 1 Guest(s)