Modification saving problem.
#1

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

Post your 26, errors here. Then we can see what problems you are getting.
Reply
#3

most common case u missed a bracket
Reply
#4

I suggest you go through your code line by line and make sure it matches every line from the wiki statement.
Reply
#5

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.
Reply
#6

Okay, show use where your code for this?
Reply
#7

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]);
Reply
#8

Do you have them defined in the enum? If yes then post enum
Reply
#9

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;
Reply
#10

It works fine for me? You must of missed something. Show all the code you have for the whole section on SaveCarMods
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)