04.08.2010, 15:19
Kar helped me save the file, just now nothing saves into the file.
i have the folders && the file saves, just nothing saves into the file, so the owner or anything will save
&&
DONT TELL ME TO GET jBIZZ
pawn Код:
public OnPlayerDisconnect(playerid) //Copy the stuff below into your one if you have one =D.
{
for(new C; C<BusinessCount+1; C++)//Loops through all businesses
{
new string[128];
format(string,sizeof(string),"/Businesses/Owners/%s.sav",BusinessInfo[C][BusName]);
if(!dini_Exists(string)) {
dini_Create(string);
new file[256];
format(file,sizeof(file),"/Businesses/Owners/%s.sav",udb_encode(BusinessInfo[C][BusName]));
dUserSetINT(BusinessInfo[C][BusName]).("Cost %d",BusinessInfo[C][BusCost]);
dUserSetINT(BusinessInfo[C][BusName]).("Sell %d",BusinessInfo[C][BusSell]);
dUserSetINT(BusinessInfo[C][BusName]).("Earn %d",BusinessInfo[C][BusEarn]);
dUserSetINT(BusinessInfo[C][BusName]).("Owner %s",BusinessInfo[BusinessCount][BusOwner]);
dUserSetINT(BusinessInfo[C][BusName]).("Name %s",BusinessInfo[C][BusName]);
}
}
return 1;
}
&&
DONT TELL ME TO GET jBIZZ