script not compiling
#1

script usually takes 50 seconds to compile
after i added a new system ( a lot of things added in multiple places)
the compiler stops compilin after 13 seconds and the script deosnt compile+ doesnt show any errors.
any ideas to find where the error is?
Reply
#2

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
any ideas to find where the error is?
after i added a new system

there you go
Reply
#3

Maybe missing some brackets or improper scripting while merging a filterscript into your gamemode.

Just give a try on this tool, maybe this tool may fix your issue.
This tool is to find the missing brackets
https://sampforum.blast.hk/showthread.php?tid=291018
Reply
#4

Quote:
Originally Posted by spinu
Посмотреть сообщение
after i added a new system

there you go
please dont talk if you can`t help me.
i know the issue is from that system,but what i wanted to say is i the system isnt all in the same place,i scripted for like 1 hour in different parts of the gamemode and i cant find the issue because i multi-checked everything.i think its a bracket
Reply
#5

Like UFF said, you probably missing some brackets (like (), {},
Reply
#6

i tried some softwares but none of them work.
Reply
#7

Quote:
Originally Posted by PepsiCola23
Посмотреть сообщение
i tried some softwares but none of them work.
what was the result of Missing bracket finder?
Reply
#8

When you miss even a bracket the code will go further and so many errors could occur that your compiler will crash while attempting to build the code.
Anywyas I suggest you to use Notepad++ or Sublime Text, they highlight brackets and such.
Reply
#9

thats all i added.

PHP код:
    if(CarInfo[idd][cSpoilerBullet] != 0) {
        
DestroyDynamicObject(SpoilerBullet[CarInfo[idd][Spawned]]);
        
SpoilerBullet[CarInfo[idd][Spawned]] = 0;    
    }
    if(
CarInfo[idd][cFataBullet] != 0) {
        
DestroyDynamicObject(FataBullet[CarInfo[idd][Spawned]]);
        
FataBullet[CarInfo[idd][Spawned]] = 0;    
    }
    if(
CarInfo[idd][cSpateBullet] != 0) {
        
DestroyDynamicObject(SpateBullet[CarInfo[idd][Spawned]]);
        
SpateBullet[CarInfo[idd][Spawned]] = 0;    
    } 
PHP код:
        if(CarInfo[dbid][cSpoilerBullet] != 0 ){
            new 
h = CarInfo[dbid][Spawned];
            
SpoilerBullet[h] = CreateDynamicObject(1003,0,0,-1000,0,0,0,100);
            
AttachDynamicObjectToVehicle(SpoilerBullet[h], h,  0.000000,-2.025000,0.300000,0.000000,0.000000,0.000000);
        }
        if(
CarInfo[dbid][cFataBullet] != 0 ){
            new 
h = CarInfo[dbid][Spawned];
            
FataBullet[h] = CreateDynamicObject(1166,0,0,-1000,0,0,0,100);
            
AttachDynamicObjectToVehicle(FataBullet[h], h, 1.049999,1.575000,0.000000,0.000000,0.000000,0.000000);
        }
        if(
CarInfo[dbid][cSpateBullet] != 0 ){
            new 
h = CarInfo[dbid][Spawned];
            
FataBullet[h] = CreateDynamicObject(1149,0,0,-1000,0,0,0,100);
            
AttachDynamicObjectToVehicle(SpateBullet[h], h, 1.049999,-1.500000,0.075000,0.000000,0.000000,0.000000);
        } 
PHP код:
        case DIALOG_SPOILERBULLET: {
            if(!
response) return ShowPlayerDialog(playerid, DIALOG_TUNEBULLET, DIALOG_STYLE_LIST, "Bullet tuning menu", "Spoiler\nFront+Rear bumper", "Buy", "Exit");
            new 
vehicleid = GetPlayerVehicleID(playerid);
            new 
carid = FindSpawnID(vehicleid);
            if(
carid == 0) return SCM(playerid, COLOR_CLIENT, "A aparut o EROARE! Incearca mai tarziu...");
            if(
CarInfo[carid][cSpoilerBullet] != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai deja un motor cumparat.");            
            
            
CarInfo[carid][cSpoilerBullet] = 1;
            
SpoilerBullet[vehicleid] = CreateDynamicObject(1003,0,0,-1000,0,0,0,100);
              
AttachDynamicObjectToVehicle(SpoilerBullet[h], h,  0.000000,-2.025000,0.300000,0.000000,0.000000,0.000000);        
            
SCM(playerid, COLOR_GOLD, "Ai instalat un kit supercharger pe masina ta!");
            
format(query, sizeof(query), "UPDATE `cars` SET `SpoilerBullet`='%d' WHERE `ID`='%d'", CarInfo[carid][cSpoilerBullet], carid);
            
mysql_query(SQL, query);            
        }
        case 
DIALOG_FATASPATEBULLET: {
            if(!
response) return ShowPlayerDialog(playerid, DIALOG_TUNEBULLET, DIALOG_STYLE_LIST, "Bullet tuning menu", "Spoiler\nFront+Rear bumper", "Buy", "Exit");
            new 
vehicleid = GetPlayerVehicleID(playerid);
            new 
carid = FindSpawnID(vehicleid);
            if(
carid == 0) return SCM(playerid, COLOR_CLIENT, "A aparut o EROARE! Incearca mai tarziu...");
            if(
CarInfo[carid][cFataBullet] != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai deja un motor cumparat.");
            if(
CarInfo[carid][cSpateBUllet] != 0) return SCM(playerid, COLOR_LGREEN, "Eroare: Ai deja un motor cumparat.");                
            
            
CarInfo[carid][cFataBullet] = 1;
            
CarInfo[carid][cSpateBullet] = 1;
            
FataBullet[vehicleid] = CreateDynamicObject(1166,0,0,-1000,0,0,0,100);
              
AttachDynamicObjectToVehicle(FataBullet[h], h, 1.049999,1.575000,0.000000,0.000000,0.000000,0.000000);    
              
SpateBullet[vehicleid] = CreateDynamicObject(1149,0,0,-1000,0,0,0,100);
            
AttachDynamicObjectToVehicle(SpateBullet[h], h, 1.049999,-1.500000,0.075000,0.000000,0.000000,0.000000);        
            
SCM(playerid, COLOR_GOLD, "Ai instalat un front+rear bumper pe masina ta!");
            
format(query, sizeof(query), "UPDATE `cars` SET `FataBullet`='%d' WHERE `ID`='%d'", CarInfo[carid][cFataBullet], carid);
            
mysql_query(SQL, query);
            
format(query, sizeof(query), "UPDATE `cars` SET `SpateBullet`='%d' WHERE `ID`='%d'", CarInfo[carid][cSpateBullet], carid);
            
mysql_query(SQL, query);        
        } 
PHP код:
            if(CarInfo[idd][cSpoilerBullet] != 0) {
                
DestroyDynamicObject(SpoilerBullet[CarInfo[idd][Spawned]]);
                
SpoilerBullet[CarInfo[idd][Spawned]] = 0;    
            }
            if(
CarInfo[idd][cFataBullet] != 0) {
                
DestroyDynamicObject(FataBullet[CarInfo[idd][Spawned]]);
                
FataBullet[CarInfo[idd][Spawned]] = 0;    
            }
            if(
CarInfo[idd][cSpateBullet] != 0) {
                
DestroyDynamicObject(SpateBullet[CarInfo[idd][Spawned]]);
                
SpateBullet[CarInfo[idd][Spawned]] = 0;    
            } 
PHP код:
    if(CarInfo[idd][cSpoilerBullet] != 0) {
        
DestroyDynamicObject(SpoilerBullet[CarInfo[idd][Spawned]]);
        
SpoilerBullet[CarInfo[idd][Spawned]] = 0;    
    }
    if(
CarInfo[idd][cFataBullet] != 0) {
        
DestroyDynamicObject(FataBullet[CarInfo[idd][Spawned]]);
        
FataBullet[CarInfo[idd][Spawned]] = 0;    
    }
    if(
CarInfo[idd][cSpateBullet] != 0) {
        
DestroyDynamicObject(SpateBullet[CarInfo[idd][Spawned]]);
        
SpateBullet[CarInfo[idd][Spawned]] = 0;    
    } 
Reply
#10

Show the complete compiler log mate, just paste the highlighted errors
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)