SA-MP Forums Archive
undefined symbol "vmodelused" - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: undefined symbol "vmodelused" (/showthread.php?tid=634165)



undefined symbol "vmodelused" - PowerF - 14.05.2017

I got this script from my friend on skype
when I tried to compile it i get this error,what should I do?

Код:
xx\FR_RP1.5.pwn(4523) : error 017: undefined symbol "vmodelused"
xx\FR_RP1.5.pwn(4523) : warning 215: expression has no effect
xx\FR_RP1.5.pwn(4523) : error 001: expected token: ";", but found "]"
xx\FR_RP1.5.pwn(4523) : error 029: invalid expression, assumed zero
xx\FR_RP1.5.pwn(4523) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
PHP код:
                    new temps1 pvehicle[playerid][0];
                    new 
temps2 GetVehicleModel(temps1);
                    if (
tvar2 == temps2) {
                        
GetVehicleDamageStatus(pvehicle[playerid][0], panelsdoorslightstires);
                        
dini_IntSet(AddDirFile(dir_carfilesstring), "panels"panels);
                        
dini_IntSet(AddDirFile(dir_carfilesstring), "doors"doors);
                        
dini_IntSet(AddDirFile(dir_carfilesstring), "lights"lights);
                        
dini_IntSet(AddDirFile(dir_carfilesstring), "tires"tires);
                    }
                    else {
                        
vmodelused[temps2-400] --;
                        if (
vmodelused[temps2-400] == 0vehiclemodels --;
                        
dini_IntSet(AddDirFile(dir_carfilesstring), "panels"0);
                        
dini_IntSet(AddDirFile(dir_carfilesstring), "doors"0);
                        
dini_IntSet(AddDirFile(dir_carfilesstring), "lights"0);
                        
dini_IntSet(AddDirFile(dir_carfilesstring), "tires"0);
                    } 



Re: undefined symbol "vmodelused" - aoky - 14.05.2017

You need to define "vmodelused", it's not defined. Are you sure it's correct?


Re: undefined symbol "vmodelused" - PowerF - 14.05.2017

I've tried to change it,still no luck..
I also tried 'new vmodelused;'


Re: undefined symbol "vmodelused" - GhostHacker9 - 14.05.2017

well you have to face such things while copy pasting. The variable that need to define is an array.


Re: undefined symbol "vmodelused" - coool - 14.05.2017

Why not ask your friend?


Re: undefined symbol "vmodelused" - PowerF - 14.05.2017

Quote:
Originally Posted by GhostHacker9
Посмотреть сообщение
well you have to face such things while copy pasting. The variable that need to define is an array.
so,it should be like this?

Код:
new array[10];