Raised This Month: $51 Target: $400
 12% 

API Scripting Help Displaying debug trace (plugin "zp50_item_infection_bomb.amxx")


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Ram
Member
Join Date: Jul 2011
Location: Life Coach San Diego
Old 11-19-2011 , 12:39   Displaying debug trace (plugin "zp50_item_infection_bomb.amxx")
Reply With Quote #1

Will you tell me how to fix this error here's the plugin code.

L 11/19/2011 - 1947: [ZP] Invalid Player (2)
L 11/19/2011 - 1947: [AMXX] Displaying debug trace (plugin "zp50_item_infection_bomb.amxx")
L 11/19/2011 - 1947: [AMXX] Run time error 10: native error (native "zp_infect_user")
L 11/19/2011 - 1947: [AMXX] [0] zp50_item_infection_bomb.sma::InfectionSmokeT hink (line 477)

PHP Code:
public InfectionSmokeThinkent )
{
    static 
Float:vOrigin[3],entinsphere
    entity_get_vector
entEV_VEC_originvOrigin )
    
    
entinsphere = -1;
    while ( ( 
entinsphere find_ent_in_sphere(entinspherevOriginget_pcvar_float(pcvarNadeRadius) + 20.0) ) )
    {
        if ( 
<= entinsphere <= maxplayers && !zp_get_user_zombie(entinsphere) )
        {
        
zp_infect_user(entinsphere)
        }
    }
    
    
entity_set_floatentEV_FL_nextthinkget_gametime( ) + 0.1)


Last edited by Ram; 11-19-2011 at 12:44.
Ram is offline
Old 11-19-2011, 18:12
poliisi299
This message has been deleted by NiHiLaNTh. Reason: Stupid
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 11-19-2011 , 19:07   Re: Displaying debug trace (plugin "zp50_item_infection_bomb.amxx")
Reply With Quote #2

full code would be great
__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.
JoKeR LauGh is offline
Snaker beatter
Veteran Member
Join Date: Sep 2011
Location: Manila, Philippines
Old 11-19-2011 , 22:58   Re: Displaying debug trace (plugin "zp50_item_infection_bomb.amxx")
Reply With Quote #3

zp_infect_user native from zp4.3

convert it to zp50

by include<zp50_core>

and replace that native to zp_core_infect(entinsphere)
__________________
Snaker beatter is offline
MeRcyLeZZ
Veteran Member
Join Date: Dec 2007
Old 11-19-2011 , 23:00   Re: Displaying debug trace (plugin "zp50_item_infection_bomb.amxx")
Reply With Quote #4

Check is_user_alive(entinsphere) before infecting.
__________________

Last edited by MeRcyLeZZ; 11-19-2011 at 23:00.
MeRcyLeZZ is offline
Ram
Member
Join Date: Jul 2011
Location: Life Coach San Diego
Old 11-20-2011 , 02:54   Re: Displaying debug trace (plugin "zp50_item_infection_bomb.amxx")
Reply With Quote #5

Quote:
Originally Posted by MeRcyLeZZ View Post
Check is_user_alive(entinsphere) before infecting.
I'll fix it I tried it but it's not.
Ram is offline
Reply



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 14:52.


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