[YINI] How would I load this...
#1

How would I load this using Y INI, its saves but Im unable to load it:
pawn Код:
for(new v = 0; v < MAX_PLAYERVEHICLES; v++) // Doesnt load
    {
        new var[1240];
        format(var, 32, "v%dPosX", v);
        INI_Float(var,PlayerVehicleInfo[playerid][v][vPosX]);
        if(!strcmp(name, var)) { PlayerVehicleInfo[playerid][v][vPosX] = strval(value); } // Tried to see if that would work.. But it doesnt.
        format(var, 32, "v%dPosY", v);
        INI_Float(var,PlayerVehicleInfo[playerid][v][vPosY]);
        if(!strcmp(name, var)) { PlayerVehicleInfo[playerid][v][vPosY] = strval(value); }
        format(var, 32, "v%dPosZ", v);
        INI_Float(var,PlayerVehicleInfo[playerid][v][vPosZ]);
        if(!strcmp(name, var)) { PlayerVehicleInfo[playerid][v][vPosZ] = strval(value); }
        format(var, 32, "v%dPosAngle", v);
        INI_Float(var,PlayerVehicleInfo[playerid][v][vPosAngle]);
        if(!strcmp(name, var)) { PlayerVehicleInfo[playerid][v][vPosAngle] = strval(value); }
        format(var, 32, "v%dModelId", v);
        INI_Int(var,PlayerVehicleInfo[playerid][v][vModelId]);
        if(!strcmp(name, var)) { PlayerVehicleInfo[playerid][v][vModelId] = strval(value); }
        format(var, 32, "v%dLock", v);
        INI_Int(var,PlayerVehicleInfo[playerid][v][vLock]);
        if(!strcmp(name, var)) { PlayerVehicleInfo[playerid][v][vLock] = strval(value); }
    }
    return 1;
}
Tried everything I could think off.
Reply


Messages In This Thread
[YINI] How would I load this... - by ryansheilds - 21.04.2012, 21:06
Re: [YINI] How would I load this... - by Face9000 - 22.04.2012, 18:46
Re: [YINI] How would I load this... - by IceCube! - 22.04.2012, 18:48
Re: [YINI] How would I load this... - by ryansheilds - 22.04.2012, 20:00
Re: [YINI] How would I load this... - by ryansheilds - 22.04.2012, 21:07
Re: [YINI] How would I load this... - by ryansheilds - 22.04.2012, 21:18
Re: [YINI] How would I load this... - by ryansheilds - 22.04.2012, 21:51

Forum Jump:


Users browsing this thread: 2 Guest(s)