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
#2

Use [pawn] and [*/pawn] (without *).
Mark the error lines.
Reply
#3

did the errors are to this line :
pawn Код:
VehicleOwner[idx] = dini_Get(file, "Owner");
Reply
#4

help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)