Data not loading
#1

Hi everyone,

I made a Garage system a while ago..
When i made the system, Bini or something was good, and I used it.
Since I have 0.3d or 0.3e, bini crashed my server, so i decided to switch to SII.

The problem is, when i buy a garage, it says that it's owned, but after a reload of the filterscript/server restart, everything is unowned again.


The problem is here i think, when the owner get's loaded.
pawn Код:
format(GI[i][O],32,"%s",INI_ReadString("O"));
This is the important point when the owner should get loaded, it worked in Bini, but now that I use SII it gives a warning: warning 202: number of arguments does not match definition


Is there anyone who can help me solve this?

Thanks in advance
Reply
#2

Is it supposed to increment variable 'c' twice?
Reply
#3

What do you mean?
Reply
#4

pawn Код:
for(new c = 0;c < MAX_GARAGES ;++c) // here it is incremented
{
    ++c; // and here it is incremented again
}
Looks like a leftover from a while-loop?
Reply
#5

ups, my bad, I wrote that there when i tried to solve the problem...
Could this be the problem?
In case you need my enum, here it is(it explains P and L and everything)
pawn Код:
enum GarageInfo
{
    O[32],//Owner
    Float:X,//Xpos
    Float:Y,//Ypos
    Float:Z,//Zpos
    P,//Price
    E,//Garage type
    I,//Pickup_ID
    bool:L,//Locked
    Text3D:T,//Text3D_ID
    vw
}
EDIT: i removed the second increment, but still nothing changes
EDIT2: so, this should be the problem:
pawn Код:
format(GI[i][O],32,"%s",INI_ReadString("O"));
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)