Raised This Month: $ Target: $400
 0% 

Entity out of range (-1) ... entity_get_int


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 04-27-2016 , 13:56   Re: Entity out of range (-1) ... entity_get_int
Reply With Quote #4

As far as I can see, that error is impossible with the code inside fw_SetModel. Did you manipulate the error display? Why?

is_valid_ent(item) && CustomItem(item)

The first part prevents the error, the second part causes it.



This is where the problem is:
Code:
public fw_UpdateClientData_Post(id, SendWeapons, CD_Handle) {         if(!is_user_alive(id) || !CustomItem(get_pdata_cbase(id, m_pActiveItem, 5))) return FMRES_IGNORED;         set_cd(CD_Handle, CD_flNextAttack, 999999.0);         return FMRES_HANDLED; }
->
Code:
public fw_UpdateClientData_Post(id, SendWeapons, CD_Handle) {         if(!is_user_alive(id))             return FMRES_IGNORED;         static sItem;         sItem = get_pdata_cbase(id, m_pActiveItem, 5);         if(!is_valid_ent(sItem) || !CustomItem(sItem))             return FMRES_IGNORED         set_cd(CD_Handle, CD_flNextAttack, 999999.0);         return FMRES_HANDLED; }
__________________

Last edited by Black Rose; 04-30-2016 at 07:02.
Black Rose is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 18:39.


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