Help with script that load info from ini[need fixs]
#1

Thats what i write:
pawn Код:
public LoadAVSVehicles()
{
    new file[64];
    for(new idx = 1; idx < MAX_VEHICLES ; idx++)
    {
    format(file, sizeof(file),"AVS/Vehicles/v%d.ini", idx);
    fopen(file,io_read);
            if(dini_Exists(file))
            {
                format(file, sizeof(file),"AVS/Vehicles/v%d.ini", idx);
                    VehicleOwner[idx] = dini_Get(file, "Owner");
                    //new Owner = dini_Get(file, "Owner");
            }//
    }
    fclose(file);
    return 1;
}
and i get those errors:
pawn Код:
C:\gamemodes\larp.pwn(2387) : error 047: array sizes do not match, or destination array is too small
C:\gamemodes\larp.pwn(2391) : error 035: argument type mismatch (argument 1)
Someone can help me where i did a mistake please?
Reply


Messages In This Thread
Help with script that load info from ini[need fixs] - by king4you - 04.02.2012, 01:51
Respuesta: Help with script that load info from ini[need fixs] - by [Nikk] - 04.02.2012, 04:24
Re: Help with script that load info from ini[need fixs] - by king4you - 04.02.2012, 13:31
Re: Help with script that load info from ini[need fixs] - by king4you - 04.02.2012, 14:44

Forum Jump:


Users browsing this thread: 2 Guest(s)