Modification saving problem.!! PLEASE LOOK. -
LuckyPlaya` - 17.01.2013
How come when I use this
https://sampwiki.blast.hk/wiki/Saving_car_mods to save my car mods, after I try to compile there comes up 26 errors - error 017: undefined symbol "VehicleInfo" . I fallowed everything on that link.
-Please try to find any solution,Thank you.
Re: Modification saving problem. -
azzerking - 17.01.2013
Post your 26, errors here. Then we can see what problems you are getting.
Re: Modification saving problem. -
park4bmx - 17.01.2013
most common case u missed a bracket
Re: Modification saving problem. -
azzerking - 17.01.2013
I suggest you go through your code line by line and make sure it matches every line from the wiki statement.
Re: Modification saving problem. -
LuckyPlaya` - 17.01.2013
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(896) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(897) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(900) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(901) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(904) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(905) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(90
: error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(909) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(912) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(913) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(916) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(917) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(920) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(921) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(924) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(925) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(92
: error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(929) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(932) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(933) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(936) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(937) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(940) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(941) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(944) : error 017: undefined symbol "VehicleInfo"
D:\Users\ROBERT\Desktop\- Exclusive Gaming RolePlay - 0.3e\gamemodes\egrp.pwn(945) : error 017: undefined symbol "VehicleInfo"
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
26 Errors.
Re: Modification saving problem. -
azzerking - 17.01.2013
Okay, show use where your code for this?
Re: Modification saving problem. -
LuckyPlaya` - 17.01.2013
From row 896-945
Код:
if(VehicleInfo[vehicleid][mod1] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod1]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod2] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod2]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod3] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod3]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod4] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod4]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod5] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod5]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod6] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod6]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod7] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod7]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod8] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod8]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod9] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod9]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod10] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod10]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod11] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod11]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod12] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod12]);
tuned2 = 1;
}
if(VehicleInfo[vehicleid][mod13] != 0) {
AddVehicleComponent(vehicleid,VehicleInfo[vehicleid][mod13]);
Re: Modification saving problem. -
azzerking - 17.01.2013
Do you have them defined in the enum? If yes then post enum
Re: Modification saving problem. -
LuckyPlaya` - 17.01.2013
I have this in enum
Код:
enum vInfo
{
mod1,
mod2,
mod3,
mod4,
mod5,
mod6,
mod7,
mod8,
mod9,
mod10,
mod11,
mod12,
mod13,
mod14,
mod15,
mod16,
mod17,
owner
};
new VehicleInfo[701][vInfo];
new tuned;
Re: Modification saving problem. -
azzerking - 17.01.2013
It works fine for me? You must of missed something. Show all the code you have for the whole section on SaveCarMods