AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   TF2Items (https://forums.alliedmods.net/forumdisplay.php?f=146)
-   -   tem is NULL. File a bug report if you are sure you set all the data correctly. (Try t (https://forums.alliedmods.net/showthread.php?t=293399)

NC.svtrade 01-31-2017 02:49

tem is NULL. File a bug report if you are sure you set all the data correctly. (Try t
 
PHP Code:

L 01/31/2017 16:43:22: [SMException reportedItem is NULLFile a bug report if you are sure you set all the data correctly. (Try the FORCE_GENERATION flag.)
L 01/31/2017 16:43:22: [SMBlamingoverwatch.smx
L 01
/31/2017 16:43:22: [SMCall stack trace:
L 01/31/2017 16:43:22: [SM]   [0TF2Items_GiveNamedItem
L 01
/31/2017 16:43:22: [SM]   [1Line 1421C:\Users\Allotroprism\Desktop\플러그인 만들기\overwatch.sp::GiveWeapon
L 01/31/2017 16:43:22: [SM]   [2Line 1942C:\Users\Allotroprism\Desktop\플러그인 만들기\overwatch.sp::OnPlayerRunCmd
L 01/31/2017 16:43:22: [TF2ITEMS] ---------------------------------------
L 01/31/2017 16:43:22: [TF2ITEMS] >>> szClassname tf_weapon_revolver
L 01
/31/2017 16:43:22: [TF2ITEMS] >>> iItemDefinitionIndex 161
L 01
/31/2017 16:43:22: [TF2ITEMS] >>> iEntityQuality 0
L 01
/31/2017 16:43:22: [TF2ITEMS] >>> iEntityLevel 0
L 01
/31/2017 16:43:22: [TF2ITEMS] ---------------------------------------
L 01/31/2017 16:43:22: [TF2ITEMS] >>> iAttributeDefinitionIndex 2
L 01
/31/2017 16:43:22: [TF2ITEMS] >>> flValue 1.250000
L 01
/31/2017 16:43:22: [TF2ITEMS] ---------------------------------------
L 01/31/2017 16:43:22: [TF2ITEMS] >>> iAttributeDefinitionIndex 51
L 01
/31/2017 16:43:22: [TF2ITEMS] >>> flValue 100.000000
L 01
/31/2017 16:43:22: [TF2ITEMS] ---------------------------------------
L 01/31/2017 16:43:22: [TF2ITEMS] >>> iAttributeDefinitionIndex 97
L 01
/31/2017 16:43:22: [TF2ITEMS] >>> flValue 0.950000
L 01
/31/2017 16:43:22: [TF2ITEMS] ---------------------------------------
L 01/31/2017 16:43:22: [TF2ITEMS] >>> iAttributeDefinitionIndex 26
L 01
/31/2017 16:43:22: [TF2ITEMS] >>> flValue 75.000000
L 01
/31/2017 16:43:22: [TF2ITEMS] ---------------------------------------
L 01/31/2017 16:43:22: [TF2ITEMS] >>> iAttributeDefinitionIndex 275
L 01
/31/2017 16:43:22: [TF2ITEMS] >>> flValue 1.000000
L 01
/31/2017 16:43:22: [TF2ITEMS] ---------------------------------------
L 01/31/2017 16:43:22: [SMException reportedItem is NULLFile a bug report if you are sure you set all the data correctly. (Try the FORCE_GENERATION flag.)
L 01/31/2017 16:43:22: [SMBlamingoverwatch.smx
L 01
/31/2017 16:43:22: [SMCall stack trace:
L 01/31/2017 16:43:22: [SM]   [0TF2Items_GiveNamedItem
L 01
/31/2017 16:43:22: [SM]   [1Line 1421C:\Users\Allotroprism\Desktop\플러그인 만들기\overwatch.sp::GiveWeapon
L 01/31/2017 16:43:22: [SM]   [2Line 1942C:\Users\Allotroprism\Desktop\플러그인 만들기\overwatch.sp::OnPlayerRunCmd
L 01/31/2017 16:43:55SourceMod error session started
L 01
/31/2017 16:43:55Info (map "pl_dorado") (file "errors_20170131.log")
L 01/31/2017 16:43:55: [CRASHAccelerator uploaded crash dumpCrash IDRRNT-I2DC-GAMX 

PHP Code:

        if(StrEqual(Champ"McCree"))
        {
            new 
Handle:hItem TF2Items_CreateItem(OVERRIDE_ALL);
            
DeleteWeapons(client"0");
            
TF2Items_SetClassname(hItem"tf_weapon_revolver");
            
TF2Items_SetItemIndex(hItem161);
            
TF2Items_SetNumAttributes(hItem5);
            
TF2Items_SetAttribute(hItem021.25);
            
TF2Items_SetAttribute(hItem151100.0);
            
TF2Items_SetAttribute(hItem2970.95);
            
TF2Items_SetAttribute(hItem32675.0);
            
TF2Items_SetAttribute(hItem42751.0);
            
int weapon TF2Items_GiveNamedItem(clienthItem); // Line 1421
            
EquipPlayerWeapon(clientweapon);
        } 

PHP Code:

if(g_Champion[client] == 5)
        {
            if(!
StrEqual(weap"tf_weapon_revolver"))
            {
                if(
PlayerCheck(client) && IsPlayerAlive(client))
                {
                    
GiveWeapon(client"McCree"); // Line 1921
                    
SetWeaponAmmo(client0999999);
                }
            }
            if(
g_McCreeOnRapid[client])
            {
                if(
GetWeaponClip(client0) != 0)
                {
                    
buttons |= IN_ATTACK;
                    return 
Plugin_Changed;
                } else {
                    
g_McCreeOnRapid[client] = false;
                    
GiveWeapon(client"McCree");
                    
SetWeaponClip(client00);
                }
            }
        } 

And It Crash The server... :(

How to fix it?


All times are GMT -4. The time now is 20:59.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.