What is wrong with my command?
#3

Ok, so i made this command to change player names.

I want when the name is already used it doesn't change name,

so i did this

pawn Код:
tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /changernom [playerid] [nouveau nom (Prenom_Nom)]");
            return 1;
        }
        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
        format(string, sizeof(string), "users/%s.ini", tmp);
        if(fexist(string))
        {
            SendClientMessage(playerid, COLOR_YELLOW, "Ce pseudo existe dйjа.");
            return 1;
        }
but when the account already exist i don't said me already exist, it change name, but normaly with the code he don't have to because account already exist
Reply


Messages In This Thread
What is wrong with my command? - by scott1 - 01.08.2010, 18:10
Re: What is wrong with my command? - by [MWR]Blood - 01.08.2010, 19:15
Re : What is wrong with my command? - by scott1 - 02.08.2010, 00:22
Re: What is wrong with my command? - by sk0t - 02.08.2010, 00:25

Forum Jump:


Users browsing this thread: 1 Guest(s)