02.08.2010, 00:22
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
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
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;
}