Now nothing saving into file
#1

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 on‌e =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
Reply
#2

xD try dini much easier
Reply
#3

Shouldn't
dUserSetINT(BusinessInfo[C][BusName])

be
dUserSetINT(file)

?
Reply
#4

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
Reply
#5

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]);
Reply
#6

yes were actually doing it together but hes using dudb LOL simple mistake i'mfixing it for him now
Reply
#7

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.
Reply
#8

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
Reply
#9

The gamemode i'm using is built up on dini only, works perfectly
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)