Szerző Téma: Jármû rendszer mentés hiba.  (Megtekintve 612 alkalommal)

Nem elérhető Rupert

  • 2301
    • Profil megtekintése
Jármû rendszer mentés hiba.
« Dátum: 2012. június 23. - 12:34:11 »
0 Show voters
Sziasztok!
Ismeretlen okokból a rendszeremben mindig egy adott fájlt ír felül a mentés. Mi lehet a gond?
 
stock KocsiMentese(i)
{
new str[256];
if(vInfo[fileid] == 999)
{
    vInfo[fileid] = GetAvailableFileID();
}
format(str, sizeof(str), JARMUVEK,vInfo[fileid]);
new INI:File = INI_Open(str);
INI_WriteFloat(File, \"PosX\",vInfo[posx]);
INI_WriteFloat(File, \"PosY\",vInfo[posy]);
INI_WriteFloat(File, \"PosZ\",vInfo[posz]);
INI_WriteFloat(File, \"Health\",vInfo[health]);
INI_WriteFloat(File, \"Rotation\",vInfo[rotation]);
INI_WriteInt(File, \"Doors\",vInfo[doors]);
INI_WriteInt(File, \"Lights\",vInfo[lights]);
INI_WriteInt(File, \"Tires\",vInfo[tires]);
INI_WriteInt(File, \"Panels\",vInfo[panels]);
INI_WriteInt(File, \"ColorA\",vInfo[colora]);
INI_WriteInt(File, \"ColorB\",vInfo[colorb]);
INI_WriteInt(File, \"Model\",vInfo[model]);
INI_Close(File);
}

dexi

  • Vendég
Jármû rendszer mentés hiba.
« Válasz #1 Dátum: 2012. június 23. - 14:12:27 »
0 Show voters
\'JARMUVEK\' definíciót írd le kérlek.

Nem elérhető Rupert

  • 2301
    • Profil megtekintése
Jármû rendszer mentés hiba.
« Válasz #2 Dátum: 2012. június 23. - 14:16:42 »
0 Show voters
#define JARMUVEK \"/rupAdmin/vehicles/%d.ini\"

 
Kétlem hogy ezzel van gond.

Nem elérhető Casamiro

  • 1046
    • Profil megtekintése
Jármû rendszer mentés hiba.
« Válasz #3 Dátum: 2012. június 23. - 14:39:51 »
0 Show voters
Esetleg így?
stock KocsiMentese(i)
{
        new str[256];
        if(vInfo[fileid] == 999)
        {
            vInfo[fileid] = GetAvailableFileID();
        }
        format(str, sizeof(str), JARMUVEK,i);
        new INI:File = INI_Open(str);
        INI_WriteFloat(File, \"PosX\",vInfo[posx]);
        INI_WriteFloat(File, \"PosY\",vInfo[posy]);
        INI_WriteFloat(File, \"PosZ\",vInfo[posz]);
        INI_WriteFloat(File, \"Health\",vInfo[health]);
        INI_WriteFloat(File, \"Rotation\",vInfo[rotation]);
        INI_WriteInt(File, \"Doors\",vInfo[doors]);
        INI_WriteInt(File, \"Lights\",vInfo[lights]);
        INI_WriteInt(File, \"Tires\",vInfo[tires]);
        INI_WriteInt(File, \"Panels\",vInfo[panels]);
        INI_WriteInt(File, \"ColorA\",vInfo[colora]);
        INI_WriteInt(File, \"ColorB\",vInfo[colorb]);
        INI_WriteInt(File, \"Model\",vInfo[model]);
        INI_Close(File);
}

Nem elérhető Rupert

  • 2301
    • Profil megtekintése
Jármû rendszer mentés hiba.
« Válasz #4 Dátum: 2012. június 23. - 15:28:27 »
0 Show voters
Áh... de szerencsétlen vagyok :\'D
Megoldódott, köszönöm szépen!

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal