Vehicle saving system
#1

pawn Код:
stock VehicleLoad(vid, file[])
{
    INI_ParseFile(file, "LoadVehicleData", .bExtra = true, .extra = vid);
    CreateVehicleEx(VehicleInfo[vid][vModel], VehicleInfo[vid][vSpawn], VehicleInfo[vid[vColor1], VehicleInfo[vid [vColor2], VehicleInfo[vid][vRespawn], VehicleInfo[vid][vOwner]); // Line 53
}
pawn Код:
Gamemode.pwn(53) : error 047: array sizes do not match, or destination array is too small
Gamemode.pwn(53) : warning 215: expression has no effect
Gamemode.pwn(53) : error 001: expected token: ";", but found "]"
Gamemode.pwn(53) : error 029: invalid expression, assumed zero
Gamemode.pwn(53) : fatal error 107: too many error messages on one line
Need help solving this error.
Reply
#2

You forgot to add 2 closing brackets(]) here,
Код:
VehicleInfo[vid[vColor1], VehicleInfo[vid [vColor2]
Just add the closing brackets and it should look like this
Код:
VehicleInfo[vid][vColor1], VehicleInfo[vid][vColor2]
Let me know if it has fixed your problem.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)