Quote:
Originally Posted by Ihsan-Cingisiz
Oh okay hmm.. Try this:
|
pawn Код:
dcmd_nick(playerid, params[])
{
new file[128], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
format(file, sizeof(file), "%s.ini", name);
if(strlen(params) < 4)
{
SendClientMessage(playerid,RED,"4 letters not more..");
return 1;
}
else
{
SetPlayerName(playerid, params);
SendClientMessage(playerid,0xFFFFFFFF,"** You've changed your nick **");
new name2[MAX_PLAYER_NAME];
GetPlayerName(playerid, name2, sizeof(name2));
dini_IntSet(file, "PlayerName", name2);
}
return 1;
}
I don't exactly know the dini_IntSet, it can be dini_Set or something because it's a
variable with character, maybe someone else can correct that.. Anyways, this was
all what i can do for you.
I hope you will get enough help to solve your problem.