#1

i get crash in this position!and look warning..



EDIT Crash:

PHP код:
SA-MP 0.3e
Exception At Address
0x007F0BF7
Registers
:
EAX0x00000000    EBX0x03DCAA88    ECX0x12AD1970    EDX0x12AD1970
ESI
0x00000000    EDI0x12AD1980    EBP0x09E36D80    ESP0x0028F1C4
EFLAGS
0x00010246
Stack
:
+
00000x12AD1980   0x1A5E7A50   0x006D3585   0x00000000
+00100x12AD1970   0x12B2C130   0x1A5E7A50   0x12AD1980
+00200x0ACB9DF8   0x09E36D80   0x00B2119C   0x00000006
+00300x0ACB9DF8   0x12AD1970   0x006DFA8B   0x03DCAA88
+00400x09E36D80   0x00000000   0x00000000   0x0ACB9DF8
+00500x00000006   0xFFFFFFFF   0x000003F8   0x03DCAA88
+00600x006E3391   0x00000000   0x00000006   0x000006E7
+00700x00000001   0x0417BEF8   0x00000000   0x004985DF
+00800xFFFFFFFF   0x00000001   0x000006E7   0x0028F474
+00900x00000000   0x0028F47C   0x00000000   0x00000001
+00A00x0028F26C   0x0ACB9DF8   0x4483D593   0x0000001A
+00B00x00000000   0x00B99A44   0x0ACB9DF8   0x09E868CC
+00C00x00544B97   0x0000000C   0x0028F3B8   0x0ACB9DF8
+00D00x00000000   0x00000001   0x00000052   0x00000051
+00E00x0000001B   0x000000A0   0x00000051   0x0000001A
+00F00x09E868CC   0x44834A2D   0x49742400   0xC9742400
+01000xC9742400   0x49742400   0xC9742400   0x49742400
+01100x0048D370   0x00002903   0x00000000   0x0000053F
+01200x0028F3A8   0x00000000   0x12AD0AA8   0x0047CCC4
+01300x00000000   0x00000175   0xFFFFFFFF   0x00000001
+01400x0417BEF8   0x0028F3B8   0x00000000   0x004682A2
+01500x00000001   0x00000001   0x000000A5   0x0000004B
+01600x0000009B   0x0028F438   0x00BB38FC   0x00000000
+01700x02720005   0x0000004B   0x00000020   0x4483D56F
+01800xC4D45201   0x416536E4   0x000000B4   0x00000003
+01900x00469EF7   0x0000053F   0x0028F3B4   0x03C92AEE
+01A00x03C92CA4   0x10AC7178   0x00000199   0x00000000
+01B00x10AC7178   0x00000199   0x00000000   0x10AC7178
+01C00x00000001   0x76EA10FC   0x00280000   0x4F2661B7
+01D00x03EAB14B   0x77B235B2   0x00000202   0x0000020B
+01E00x03EBF416   0x00000202   0x0028F3E4   0x0028F43C
+01F00x10AC7138   0x0028F3CC   0x00000000   0x0B11BDF4
+02000x0ACB9DF8   0x03C97BE5   0x03E93068   0x0000007C
+02100x00000202   0x00000202   0x76EA10FC   0x03C97BE5
+02200x00000199   0x00000001   0x0028FA68   0xE11A7701
+02300x00002903   0x10AC7138   0xBC612823   0xBF7FF9D0
+02400x00000000   0x00000000   0x3F7FF9D0   0xBC612823
+02500x0028F464   0x00838D7D   0xFFFFFFFF   0x00469EF7
+02600x000006E7   0x0028F484   0x03C92AEE   0x03C92CA4
+02700x10AC7138   0x000003F8   0xE11A7701   0x000003F8
SCM Op
0x6E7lDbg1
Game Version
US 1.0
State Information
Ped Context0
P0 
(0,0P1 (0,0P3 (144,0
P4 (0,0P5 (0,0P6 (0,0P8 (0,0P9 (144,0
Reply
#2

happens to whole server pleaseee help!!!!
Reply
#3

With a little research it seems to be a problem with vehicle mods. If it happens to not only you then it's the script, however if you're the only one affected it's a mod you installed.

Edit: If it happens to everyone, check for AddVehicleComponent in the script.
Reply
#4

and look for what at AddVehicleComponent ??
Reply
#5

An invalid mod. Just try commenting an AddVehicleComponent until the issue is resolved. If you checkout https://sampwiki.blast.hk/wiki/AddVehicleComponent it gives you a warning about using invalid mods causing crashes.
Quote:

Important Note: Using an invalid componentid crashes the game.

Reply
#6

but how can i fix it this causes!


PHP код:
public LoadComponents(vehicleid)
{
    if(
CarInfo[vehicleid][cOwned] == 1)
    {
        if(
CarInfo[vehicleid][mod1] >= 1000 && CarInfo[vehicleid][mod1] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod1])) != CarInfo[vehicleid][mod1]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod1]); }
        }
        if(
CarInfo[vehicleid][mod2] >= 1000 && CarInfo[vehicleid][mod2] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod2])) != CarInfo[vehicleid][mod2]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod2]); }
        }
        if(
CarInfo[vehicleid][mod3] >= 1000 && CarInfo[vehicleid][mod3] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod3])) != CarInfo[vehicleid][mod3]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod3]); }
        }
        if(
CarInfo[vehicleid][mod4] >= 1000 && CarInfo[vehicleid][mod4] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod4])) != CarInfo[vehicleid][mod4]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod4]); }
        }
        if(
CarInfo[vehicleid][mod5] >= 1000 && CarInfo[vehicleid][mod5] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod5])) != CarInfo[vehicleid][mod5]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod5]); }
        }
        if(
CarInfo[vehicleid][mod6] >= 1000 && CarInfo[vehicleid][mod6] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod6])) != CarInfo[vehicleid][mod6]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod6]); }
        }
        if(
CarInfo[vehicleid][mod7] >= 1000 && CarInfo[vehicleid][mod7] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod7])) != CarInfo[vehicleid][mod7]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod7]); }
        }
        if(
CarInfo[vehicleid][mod8] >= 1000 && CarInfo[vehicleid][mod8] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod8])) != CarInfo[vehicleid][mod8]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod8]); }
        }
        if(
CarInfo[vehicleid][mod9] >= 1000 && CarInfo[vehicleid][mod9] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod9])) != CarInfo[vehicleid][mod9]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod9]); }
        }
        if(
CarInfo[vehicleid][mod10] >= 1000 && CarInfo[vehicleid][mod10] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod10])) != CarInfo[vehicleid][mod10]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod10]); }
        }
        if(
CarInfo[vehicleid][mod11] >= 1000 && CarInfo[vehicleid][mod11] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod11])) != CarInfo[vehicleid][mod11]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod11]); }
        }
        if(
CarInfo[vehicleid][mod12] >= 1000 && CarInfo[vehicleid][mod12] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod12])) != CarInfo[vehicleid][mod12]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod12]); }
        }
        if(
CarInfo[vehicleid][mod13] >= 1000 && CarInfo[vehicleid][mod13] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod13])) != CarInfo[vehicleid][mod13]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod13]); }
        }
        if(
CarInfo[vehicleid][mod14] >= 1000 && CarInfo[vehicleid][mod14] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod14])) != CarInfo[vehicleid][mod14]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod14]); }
        }
        if(
CarInfo[vehicleid][mod15] >= 1000 && CarInfo[vehicleid][mod15] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod15])) != CarInfo[vehicleid][mod15]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod15]); }
        }
        if(
CarInfo[vehicleid][mod16] >= 1000 && CarInfo[vehicleid][mod16] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod16])) != CarInfo[vehicleid][mod16]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod16]); }
        }
        if(
CarInfo[vehicleid][mod17] >= 1000 && CarInfo[vehicleid][mod17] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod17])) != CarInfo[vehicleid][mod17]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod17]); }
        }
        if(
CarInfo[vehicleid][paintjob] > -1) { ChangeVehiclePaintjob(vehicleid,CarInfo[vehicleid][paintjob]); } //ChangeVehicleColor(vehicleid, 1, 1); }
        
else { ChangeVehicleColor(vehicleidCarInfo[vehicleid][cColorOne], CarInfo[vehicleid][cColorTwo]); }
        if(
CarInfo[vehicleid][cLicense] > 0) { SetVehicleNumberPlate(vehicleid,CarInfo[vehicleid][cLicense]); }
    }
    else
    {
        if(
CarInfo[vehicleid][cLicense] > 0) { SetVehicleNumberPlate(vehicleid,CarInfo[vehicleid][cLicense]); }
        }
    return 
1;
       } 
Reply
#7

Check out https://sampforum.blast.hk/showthread.php?tid=317303
Reply
#8

i put it and still et crashed what object cand it be its not nitro/spoiler/wheels
Reply
#9

please help me fix the crash thing..
Reply
#10

PHP код:
 if(CarInfo[vehicleid][mod3] >= 1000 && CarInfo[vehicleid][mod3] <= 1193)
       
// {
       //     if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod3])) != CarInfo[vehicleid][mod3]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod3]); }
       // }
        // if(CarInfo[vehicleid][mod4] >= 1000 && CarInfo[vehicleid][mod4] <= 1193)
        // {
        //     if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod4])) != CarInfo[vehicleid][mod4]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod4]); }
        // }
        // if(CarInfo[vehicleid][mod5] >= 1000 && CarInfo[vehicleid][mod5] <= 1193)
        // {
        //     if(GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod5])) != CarInfo[vehicleid][mod5]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod5]); }
        // }
        
if(CarInfo[vehicleid][mod6] >= 1000 && CarInfo[vehicleid][mod6] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod6])) != CarInfo[vehicleid][mod6]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod6]); }
        }
        if(
CarInfo[vehicleid][mod7] >= 1000 && CarInfo[vehicleid][mod7] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod7])) != CarInfo[vehicleid][mod7]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod7]); }
        }
        if(
CarInfo[vehicleid][mod8] >= 1000 && CarInfo[vehicleid][mod8] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod8])) != CarInfo[vehicleid][mod8]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod8]); }
        }
        if(
CarInfo[vehicleid][mod9] >= 1000 && CarInfo[vehicleid][mod9] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod9])) != CarInfo[vehicleid][mod9]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod9]); }
        }
        if(
CarInfo[vehicleid][mod10] >= 1000 && CarInfo[vehicleid][mod10] <= 1193)
        {
            if(
GetVehicleComponentInSlot(vehicleid,GetVehicleComponentType(CarInfo[vehicleid][mod10])) != CarInfo[vehicleid][mod10]) { AddVehicleComponent(vehicleid,CarInfo[vehicleid][mod10]); }
        } 
how can i find the bad person??
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)