Raised This Month: $ Target: $400
 0% 

Error After Debug - FAKEMETA


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Baws
Veteran Member
Join Date: Oct 2012
Old 10-30-2013 , 09:19   Error After Debug - FAKEMETA
Reply With Quote #1

PHP Code:
L 10/30/2013 03:58:53: [FAKEMETAInvalid entity
L 10
/30/2013 03:58:53: [AMXXDisplaying debug trace (plugin "SurfTimer.amxx")
L 10/30/2013 03:58:53: [AMXXRun time error 10native error (native "set_pdata_int")
L 10/30/2013 03:58:53: [AMXX]    [0SurfTimer.sma::fm_set_weapon_ammo (line 3118)
L 10/30/2013 03:58:53: [AMXX]    [1SurfTimer.sma::give_scout (line 1270)
L 10/30/2013 03:58:53: [AMXX]    [2SurfTimer.sma::event_curweapon (line 2399


L 10/30/2013 - 03:58:53: [AMXX] [0] SurfTimer.sma::fm_set_weapon_ammo (line 311


PHP Code:
stock fm_set_weapon_ammo(weapon_idammo)
{    
    
set_pdata_int(weapon_id51ammoEXTRAOFFSET_WEAPONS);

L 10/30/2013 - 03:58:53: [AMXX] [1] SurfTimer.sma::give_scout (line 1270)


PHP Code:
public give_scout(idarmita)
{    
    new 
ent fm_give_item(idg_weaponconst[armita]);    
    
fm_set_weapon_ammo(ent0)

L 10/30/2013 - 03:58:53: [AMXX] [2] SurfTimer.sma::event_curweapon (line 2399)


PHP Code:
public event_curweapon(id)
{
    if( 
get_pcvar_num(cvar_enable) != )
        return
    
    static 
last_weapon[33];
    
    static 
weapon_activeweapon_num
    weapon_active 
read_data(1)
    
weapon_num read_data(2)
    
    
//Checks Weapons to prevents bugs time
    
if( g_armaprotop[id] && g_playerstart[id] && is_user_alive(id) )
    {
        if( 
weapon_num != CSW_KNIFE && weapon_num != CSW_USP )
        {
            
fm_strip_user_weapons(id)
            
give_uspknife(id)
        }
    }
    else if( !
g_armaprotop[id] && g_playerstart[id] && is_user_alive(id) )
    {
        if( 
weapon_num != g_numerodearma[id] )
        {
            
fm_strip_user_weapons(id)
            
give_scout(idg_numerodearma[id])
        }
    } 
Any help to stop errors?
__________________
Like my clean plugins and work?
Baws is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 10-30-2013 , 09:22   Re: Error After Debug - FAKEMETA
Reply With Quote #2

give_item (fun/fakemeta) will return 0 if the player already has the weapon
__________________
simanovich is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 10-30-2013 , 09:25   Re: Error After Debug - FAKEMETA
Reply With Quote #3

So how should i do it to remove his weapon and add the weapon? Like without anything. And the player in-game always have a USP not a scout.
__________________
Like my clean plugins and work?
Baws is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-30-2013 , 13:56   Re: Error After Debug - FAKEMETA
Reply With Quote #4

PHP Code:
public give_scout(idarmita
{     
    new 
ent fm_give_item(idg_weaponconst[armita]);     
    
fm_set_weapon_ammo(ent0

->

PHP Code:
public give_scout(idarmita
{     
    new 
ent give_item(idg_weaponconst[armita]);
    if( 
ent )
    {
        
cs_set_weapon_ammo(ent0);
    }

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 10-31-2013 , 18:22   Re: Error After Debug - FAKEMETA
Reply With Quote #5

Error compiling.


PHP Code:
ErrorUndefined symbol "give_item" on line 1269 
And fm_set_weapon_ammo is a stock so why remove it?
__________________
Like my clean plugins and work?
Baws is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-31-2013 , 18:24   Re: Error After Debug - FAKEMETA
Reply With Quote #6

Quote:
Originally Posted by baws View Post
Error compiling.


PHP Code:
ErrorUndefined symbol "give_item" on line 1269 
Did you include Fun?

Quote:
And fm_set_weapon_ammo is a stock so why remove it?
Because it is inefficient.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 10-31-2013 at 18:25.
YamiKaitou is offline
Baws
Veteran Member
Join Date: Oct 2012
Old 10-31-2013 , 23:35   Re: Error After Debug - FAKEMETA
Reply With Quote #7

Thanks.
__________________
Like my clean plugins and work?
Baws 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 23:18.


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