28.01.2011, 20:02
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;
}
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.