Now nothing saving into file -
willsuckformoney - 04.08.2010
Kar helped me save the file, just now nothing saves into the file.
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;
}
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
Re: Now nothing saving into file -
Kar - 04.08.2010
xD try dini much easier
Re: Now nothing saving into file -
Mike Garber - 04.08.2010
Shouldn't
dUserSetINT(BusinessInfo[C][BusName])
be
dUserSetINT(file)
?
Re: Now nothing saving into file -
Kar - 04.08.2010
o.. i just relized its surpose to be the path thx mike
btw are u mike garber who acted in that train movie lo,l
Re: Now nothing saving into file -
Mike Garber - 04.08.2010
No I'm not.
I'm Mike Garber from ERP, GTAPoliceMods etc.
By the way, i think this is more correct;
pawn Код:
dini_IntSet(file, "Cost", BusinessInfo[C][BusCost]);
Re: Now nothing saving into file -
Kar - 04.08.2010
yes were actually doing it together but hes using dudb LOL simple mistake i'mfixing it for him now
Re: Now nothing saving into file -
Mike Garber - 04.08.2010
Yeah, the way he seems to do It is harder then doing It with dini :P
dini Is faster to code and easier to understand.
Re: Now nothing saving into file -
Kar - 04.08.2010
ya but dini has bugs if u fail at it but dudb is more "efficent" as some say so he does it like that im changing mine to incognito and dini:d
Re: Now nothing saving into file -
Mike Garber - 04.08.2010
The gamemode i'm using is built up on dini only, works perfectly
Re: Now nothing saving into file -
willsuckformoney - 04.08.2010
Quote:
Originally Posted by Mike Garber
The gamemode i'm using is built up on dini only, works perfectly
|
maybe you can take my script && fix it up please, desperate.