View Single Post
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 11-21-2019 , 03:45   Re: Half-Life GunGame
Reply With Quote #115

This should clear up crashing without commenting lines out. Bools were being used as integers half a dozen times.

bool:EQUIP_FULL_PRIMARY,
bool:EQUIP_FULL_SECONDARY,

tag mismatch
lines 1800-1819

Replace
Code:
equipItem[EQUIP_FULL_PRIMARY] = 1
Code:
equipItem[EQUIP_FULL_PRIMARY] = true

Code:
equipItem[EQUIP_FULL_SECONDARY] = 1
Code:
equipItem[EQUIP_FULL_SECONDARY] = true

From float to integer.
Code:
equipItem[EQUIP_CLIP] = -1.0
Code:
equipItem[EQUIP_CLIP] = -1

Code:
//      playersData[id][PLAYER_BOT] = if(is_user_bot(id))         if(is_user_bot(id)){         switch(0,1){         case 0 : playersData[id][PLAYER_BOT] = false         case 1 : playersData[id][PLAYER_BOT] = true         }         }
__________________

Last edited by DJEarthQuake; 05-30-2020 at 03:01. Reason: typo
DJEarthQuake is offline