undefined symbol "vmodelused"
#1

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);
                    } 
Reply
#2

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

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

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

Why not ask your friend?
Reply
#6

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];
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)