10.09.2012, 06:31
pawn Код:
new pname[MAX_PLAYER_NAME], path[200];
new file[200];
GetPlayerName(playerid, pname, sizeof(pname));
if(dini_Exists(inputtext)) return SendClientMessage(playerid, Red, "That name has already been taken!");
format(path, sizeof(path), "/myserver/%s.ini", pname);
dini_Set(path, "/myserver/%s.ini", inputtext);
SendClientMessage(playerid, Green, "Your name has been successfully been changed");
SetPlayerName(playerid, inputtext);
format(file,sizeof(file),"Business/%i.ini",cpid[playerid]);
GetPlayerName(playerid,Name,sizeof(Name));
dini_Set(file, "Owner",inputtext);
format(Label, sizeof(Label), "Business Name: %s\nOwner: %s",dini_Get(file, "Name"),inputtext);
Update3DTextLabelText(BusinessInfo[cpid[playerid]][bLabel],White,Label);
but, the our .ini file name does not saves.
Help with this pleaze, and find whats the mistake and then correct and then post it.
so it can work, pleaze do it faster as you can.