Help!
#1

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);
Everything works in this, the business owner name saves also.
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.
Reply


Messages In This Thread
Help! - by RyanPetersons - 10.09.2012, 06:31
Re: Help! - by RyanPetersons - 10.09.2012, 07:25
Re: Help! - by RyanPetersons - 10.09.2012, 08:15
Re: Help! - by Audiophr3ak - 10.09.2012, 08:21
Re: Help! - by RyanPetersons - 10.09.2012, 09:18
Re: Help! - by Audiophr3ak - 10.09.2012, 09:30
Re: Help! - by RyanPetersons - 10.09.2012, 09:37
Re: Help! - by RyanPetersons - 10.09.2012, 09:40

Forum Jump:


Users browsing this thread: 2 Guest(s)