FIX 2019
L 11/10/2019 - 11:14:48: [SM] Exception reported: Client 2 is not in game
L 11/10/2019 - 11:14:48: [SM] Blaming: hookgrabrope.smx
L 11/10/2019 - 11:14:48: [SM] Call stack trace:
L 11/10/2019 - 11:14:48: [SM] [0] PrintCenterText
L 11/10/2019 - 11:14:48: [SM] [1] Line 1701, hookgrabrope.sp::GrabSearch
Change line 1701 with:
PHP Code:
PrintCenterText(client, "%t", "Searching"); // Tell client the plugin is searching for a target
to
PHP Code:
if(IsClientInGame(client)) PrintCenterText(client, "%t", "Searching"); // Tell client the plugin is searching for a target
And fix warnings compilation change lines:
PHP Code:
207:
with - OriginOffset = FindSendPropOffs("CBaseEntity", "m_vecOrigin");
to - OriginOffset = FindSendPropInfo("CBaseEntity", "m_vecOrigin");
211:
with - GetVelocityOffset_x = FindSendPropOffs("CBasePlayer", "m_vecVelocity[0]");
to - GetVelocityOffset_x = FindSendPropInfo("CBasePlayer", "m_vecVelocity[0]");
215:
with - GetVelocityOffset_y = FindSendPropOffs("CBasePlayer", "m_vecVelocity[1]");
to - GetVelocityOffset_y = FindSendPropInfo("CBasePlayer", "m_vecVelocity[1]");
219:
with - GetVelocityOffset_z = FindSendPropOffs("CBasePlayer", "m_vecVelocity[2]");
to - GetVelocityOffset_z = FindSendPropInfo("CBasePlayer", "m_vecVelocity[2]");
224:
to - CreateConVar("sm_hgr_version", PLUGIN_VERSION, "[HGR] Plugin version");