Raised This Month: $ Target: $400
 0% 

[HE % Smoke Problem]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-13-2014 , 22:37   [HE % Smoke Problem]
Reply With Quote #1

Hi all. I have downloaded He Granade & Smoke Granade for furien mod and I can compil it but this don't work in Shop Menu.

He Granade:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <engine>  
#include <amxmisc>
#include <fun>



#include "furien.inc"
#include "furien_shop.inc"

#define VERSION "0.2.1"


new g_iCost[2]

public 
plugin_init()
{
    
register_plugin("Furien OldSchool He Granade"VERSION"frOOgy")

    new 
szConfigFile[128]
    
get_localinfo("amxx_configsdir"szConfigFilecharsmax(szConfigFile))
    
format(szConfigFilecharsmax(szConfigFile), "%s/furien/items/hegranade.ini"szConfigFile);

    new 
fp fopen(szConfigFile"rt")
    if( !
fp )
    {
        return
    }

    new 
szFurienName[32], szAntiName[32]

    new 
szDatas[64], szKey[16], szValue[32]
    while( !
feof(fp) )
    {
        
fgets(fpszDatascharsmax(szDatas))
        
trim(szDatas)
        if(!
szDatas[0] || szDatas[0] == ';' || szDatas[0] == '#' || (szDatas[0] == '/' && szDatas[1] == '/'))
        {
            continue
        }

        
parse(szDatasszKeycharsmax(szKey), szValuecharsmax(szValue))

        switch( 
szKey[0] )
        {
            case 
'A':
            {
                switch( 
szKey[7] )
                {
                    case 
'M':
                    {
                        if( 
equal(szKey"ANTI_NAME" ) )
                        {
                            
copy(szAntiNamecharsmax(szAntiName), szValue)
                        }
                    }
                    case 
'S':
                    {
                        if( 
equal(szKey"ANTI_COST" ) )
                        {
                            
g_iCost[AntiFurien] = str_to_num(szValue)
                        }
                    }
                }
            }
            case 
'F':
            {
                switch( 
szKey[9] )
                {
                    case 
'M':
                    {
                        if( 
equal(szKey"FURIEN_NAME" ) )
                        {
                            
copy(szFurienNamecharsmax(szAntiName), szValue)
                        }
                    }
                    case 
'S':
                    {
                        if( 
equal(szKey"FURIEN_COST" ) )
                        {
                            
g_iCost[Furien] = str_to_num(szValue)
                        }
                    }
                }
            }
        }
    }
    
fclosefp )

    if( 
g_iCost[Furien] || g_iCost[AntiFurien] )
    {
        
furien_register_item(szFurienNameg_iCost[Furien], szAntiNameg_iCost[AntiFurien], "furien_buy_autobhop")

        
RegisterHam(Ham_Player_Jump"player""CBasePlayer_Jump"false)
        
RegisterHam(Ham_Killed"player""CBasePlayer_Killed"true)
    }
}

public 
furien_buy_autobhopid )
{
    new 
iTeam furien_get_user_team(id)
    if( 
iTeam == -)
    {
        return 
ShopCloseMenu
    
}

    new 
iItemCost g_iCost[iTeam]
    if( 
iItemCost <= )
    {
        return 
ShopTeamNotAvail
    
}

    if( 
furien_try_buy(idiItemCost) )
    {
        
give_item(id,"weapon_hegranade")
    }
    else
    {
        return 
ShopNotEnoughMoney
    
}

    return 
ShopAlreadyHaveOne

Smoke Granade
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <engine>  
#include <amxmisc>
#include <fun>



#include "furien.inc"
#include "furien_shop.inc"

#define VERSION "1.0"


new g_iCost[2]

public 
plugin_init()
{
    
register_plugin("Furien OldSchool Smoke Granade"VERSION"frOOgy")

    new 
szConfigFile[128]
    
get_localinfo("amxx_configsdir"szConfigFilecharsmax(szConfigFile))
    
format(szConfigFilecharsmax(szConfigFile), "%s/furien/items/smoke.ini"szConfigFile);

    new 
fp fopen(szConfigFile"rt")
    if( !
fp )
    {
        return
    }

    new 
szFurienName[32], szAntiName[32]

    new 
szDatas[64], szKey[16], szValue[32]
    while( !
feof(fp) )
    {
        
fgets(fpszDatascharsmax(szDatas))
        
trim(szDatas)
        if(!
szDatas[0] || szDatas[0] == ';' || szDatas[0] == '#' || (szDatas[0] == '/' && szDatas[1] == '/'))
        {
            continue
        }

        
parse(szDatasszKeycharsmax(szKey), szValuecharsmax(szValue))

        switch( 
szKey[0] )
        {
            case 
'A':
            {
                switch( 
szKey[7] )
                {
                    case 
'M':
                    {
                        if( 
equal(szKey"ANTI_NAME" ) )
                        {
                            
copy(szAntiNamecharsmax(szAntiName), szValue)
                        }
                    }
                    case 
'S':
                    {
                        if( 
equal(szKey"ANTI_COST" ) )
                        {
                            
g_iCost[AntiFurien] = str_to_num(szValue)
                        }
                    }
                }
            }
            case 
'F':
            {
                switch( 
szKey[9] )
                {
                    case 
'M':
                    {
                        if( 
equal(szKey"FURIEN_NAME" ) )
                        {
                            
copy(szFurienNamecharsmax(szAntiName), szValue)
                        }
                    }
                    case 
'S':
                    {
                        if( 
equal(szKey"FURIEN_COST" ) )
                        {
                            
g_iCost[Furien] = str_to_num(szValue)
                        }
                    }
                }
            }
        }
    }
    
fclosefp )

    if( 
g_iCost[Furien] || g_iCost[AntiFurien] )
    {
        
furien_register_item(szFurienNameg_iCost[Furien], szAntiNameg_iCost[AntiFurien], "furien_buy_autobhop")

        
RegisterHam(Ham_Player_Jump"player""CBasePlayer_Jump"false)
        
RegisterHam(Ham_Killed"player""CBasePlayer_Killed"true)
    }
}

public 
furien_buy_autobhopid )
{
    new 
iTeam furien_get_user_team(id)
    if( 
iTeam == -)
    {
        return 
ShopCloseMenu
    
}

    new 
iItemCost g_iCost[iTeam]
    if( 
iItemCost <= )
    {
        return 
ShopTeamNotAvail
    
}

    if( 
furien_try_buy(idiItemCost) )
    {
        
give_item(id,"weapon_smokegranade")
    }
    else
    {
        return 
ShopNotEnoughMoney
    
}

    return 
ShopAlreadyHaveOne

__________________
Help me in other requests

Change Map System [PLUGIN]

GaG System [PLUGIN] [PLUGIN]
frOOgy is offline
Send a message via Skype™ to frOOgy
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-13-2014 , 22:40   Re: [HE % Smoke Problem]
Reply With Quote #2

Is already worked for me + you need to update your icludes or compile in AMX web compiler
__________________
Eagle07 is offline
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-13-2014 , 22:43   Re: [HE % Smoke Problem]
Reply With Quote #3

L 07/14/2014 - 02:13:02: [AMXX] Run time error 10 (plugin "FOSv2_HeGranade.amxx") (native "RegisterHam") - debug not enabled!

L 07/14/2014 - 02:13:02: [AMXX] Run time error 10 (plugin "FOSv2_Smoke.amxx") (native "RegisterHam") - debug not enabled!
__________________
Help me in other requests

Change Map System [PLUGIN]

GaG System [PLUGIN] [PLUGIN]
frOOgy is offline
Send a message via Skype™ to frOOgy
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-13-2014 , 22:52   Re: [HE % Smoke Problem]
Reply With Quote #4

Quote:
Originally Posted by YamiKaitou View Post
Redownload 1.8.2 and take the hamdata.ini file
__________________
Eagle07 is offline
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-13-2014 , 22:57   Re: [HE % Smoke Problem]
Reply With Quote #5

I don't understend bro....

I Think this is problem:
PHP Code:
RegisterHam(Ham_Player_Jump"player""CBasePlayer_Jump"false
RegisterHam(Ham_Killed"player""CBasePlayer_Killed"true
__________________
Help me in other requests

Change Map System [PLUGIN]

GaG System [PLUGIN] [PLUGIN]
frOOgy is offline
Send a message via Skype™ to frOOgy
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-13-2014 , 22:59   Re: [HE % Smoke Problem]
Reply With Quote #6

Update your Amxmodx version
__________________
Eagle07 is offline
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-13-2014 , 23:02   Re: [HE % Smoke Problem]
Reply With Quote #7

I have 1.8.1
__________________
Help me in other requests

Change Map System [PLUGIN]

GaG System [PLUGIN] [PLUGIN]
frOOgy is offline
Send a message via Skype™ to frOOgy
Eagle07
Veteran Member
Join Date: May 2014
Location: Morocco :D
Old 07-13-2014 , 23:07   Re: [HE % Smoke Problem]
Reply With Quote #8

download 1.8.2
http://www.amxmodx.org/downloads.php
__________________
Eagle07 is offline
frOOgy
Senior Member
Join Date: Jul 2014
Old 07-14-2014 , 00:33   Re: [HE % Smoke Problem]
Reply With Quote #9

With 1.8.2
PHP Code:
L 07/14/2014 06:30:02: -------- Mapchange to de_dust2 --------
Navigation map loaded.
[
AMXXLoaded 1 admin from file
L 07
/14/2014 06:30:03: [HAMSANDWICH] Function CBasePlayer_Jump not found.
L 07/14/2014 06:30:03: [AMXXRun time error 10 (plugin "HeGranade.amxx") (native "RegisterHam") - debug not enabled!
L 07/14/2014 06:30:03: [AMXXTo enable debug modeadd "debug" after the plugin name in plugins.ini (without quotes).
L 07/14/2014 06:30:03: [HAMSANDWICH] Function CBasePlayer_Jump not found.
L 07/14/2014 06:30:03: [AMXXRun time error 10 (plugin "Smoke.amxx") (native "RegisterHam") - debug not enabled!
L 07/14/2014 06:30:03: [AMXXTo enable debug modeadd "debug" after the plugin name in plugins.ini (without quotes).
Menu item 17 added to Menus Front-End"Nade Mode Menu" from plugin "NadeModes"
Executing AMX Mod X Configuration File 
Scrolling message displaying frequency
10:00 minutes
[NadeModesExecuting config file ... 
[
NadeModesSettings loaded from config file 
Menu item 18 added to Menus Front
-End"Plugin Cvars" from plugin "pluginmenu.amxx"
Menu item 19 added to Menus Front-End"Plugin Commands" from plugin "pluginmenu.amxx"
L 07/14/2014 06:30:37: [FUNInvalid player 1
L 07
/14/2014 06:30:37: [AMXXRun time error 10 (plugin "VIP-System.amxx") (native "set_user_health") - debug not enabled!
L 07/14/2014 06:30:37: [AMXXTo enable debug modeadd "debug" after the plugin name in plugins.ini (without quotes). 
__________________
Help me in other requests

Change Map System [PLUGIN]

GaG System [PLUGIN] [PLUGIN]

Last edited by frOOgy; 07-14-2014 at 00:34.
frOOgy is offline
Send a message via Skype™ to frOOgy
wickedd
Veteran Member
Join Date: Nov 2009
Old 07-14-2014 , 00:48   Re: [HE % Smoke Problem]
Reply With Quote #10

Read the error again, it tells you what to do.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd 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 01:26.


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