problems with SII ini
#1

Hello,

Well im using SII ini writer from deathSlick to write vehicle info into a file. Somehow it wont seem to cach the
model of the car. In the file the model remains at ' 0 ' .
Here's what i got;

pawn Code:
enum carDataEnum
{
    vModel,
    vColor1,
    vColor2,
    Float:vPosX,
    Float:vPosY,
    Float:vPosZ,
    Float:vPosA,
    vPaintJ
}
new vInfo[MAX_VEHICLES][carDataEnum];
pawn Code:
stock SavePrivVeh(playerid,iVehicleID)
{
    new PName[MAX_PLAYER_NAME + 20],iStr[15];//15
   
    GetVehiclePos(iVehicleID,vInfo[iVehicleID][vPosX],vInfo[iVehicleID][vPosY],vInfo[iVehicleID][vPosZ]);
    GetVehicleZAngle(iVehicleID,vInfo[iVehicleID][vPosA]);
   
    GetVehicleModel(vInfo[iVehicleID][vModel]);//
   
    GetPlayerName(playerid, PName, sizeof(PName));
    format(iStr, sizeof(iStr), "%s.ini",PName);
    if(INI_Open(iStr))
    {
        INI_WriteInt("Model", vInfo[iVehicleID][vModel]);
        INI_WriteInt("Color1", vInfo[iVehicleID][vColor1]);
        INI_WriteInt("Color2", vInfo[iVehicleID][vColor2]);
        INI_WriteFloat("vPosX", vInfo[iVehicleID][vPosX]);
        INI_WriteFloat("vPosY", vInfo[iVehicleID][vPosY]);
        INI_WriteFloat("vPosZ", vInfo[iVehicleID][vPosZ]);
        INI_WriteFloat("vPosA", vInfo[iVehicleID][vPosA]);
        INI_WriteInt("PaintJ", vInfo[iVehicleID][vPaintJ]);

        INI_Save();
        INI_Close();
    }
    return 1;
}
The floats do work..any ideas
i got the update to 0.7 from SII
Reply
#2

BUMP

but i guess its better to place the question here;

https://sampforum.blast.hk/showthread.php?tid=334239
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)