Raised This Month: $32 Target: $400
 8% 

Vip Menu


Post New Thread Reply   
 
Thread Tools Display Modes
messi
Junior Member
Join Date: Feb 2011
Old 04-17-2012 , 23:17   Re: Vip Menu
Reply With Quote #21

Quote:
Originally Posted by Doc-Holiday View Post
Ill look at it when i get home
thanks man
messi is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-17-2012 , 23:40   Re: Vip Menu
Reply With Quote #22

Quote:
Originally Posted by messi View Post
thank you for the plugin, but
there is an error : and the menu doesn't show
i type "amxx plugins" and it show that the plugin 's still running
i enable debug mode and it shows me

Invalid CVAR pointer
[AMXX] Displaying debug trace (plugin "VIP_Menu.amxx")
[AMXX] Run time error 10: native error (native "get_pcvar_num")
[AMXX] [0] 102282.attach::fwdPlayerSpawn (line 49)


please fix it ^^
weird i am unable to recreate this issue. i did however find another runtime that was fixed.

View updated code let me know if it continues. that is saying that

Code:
if(get_pcvar_num(g_iSwitch) && is_user_alive(id))
Is incorrect or not valid (the g_iSwitch cvar pointer)

but it is correct and checked in multiple places with only that one error.

Did you modify the code at all?
Doc-Holiday is offline
messi
Junior Member
Join Date: Feb 2011
Old 04-18-2012 , 00:23   Re: Vip Menu
Reply With Quote #23

Quote:
Originally Posted by Doc-Holiday View Post
weird i am unable to recreate this issue. i did however find another runtime that was fixed.

View updated code let me know if it continues. that is saying that

Code:
if(get_pcvar_num(g_iSwitch) && is_user_alive(id))
Is incorrect or not valid (the g_iSwitch cvar pointer)

but it is correct and checked in multiple places with only that one error.

Did you modify the code at all?


no i don't modify

the error is
Code:
Invalid CVAR pointer
[AMXX] Displaying debug trace (plugin "VIP_Menu.amxx")
[AMXX] Run time error 10: native error (native "get_pcvar_num")
[AMXX]    [0] 102346.attach::fwdPlayerSpawn (line 49)
messi is offline
Doc-Holiday
AlliedModders Donor
Join Date: Jul 2007
Old 04-18-2012 , 03:41   Re: Vip Menu
Reply With Quote #24

Quote:
Originally Posted by messi View Post
no i don't modify

the error is
Code:
Invalid CVAR pointer
[AMXX] Displaying debug trace (plugin "VIP_Menu.amxx")
[AMXX] Run time error 10: native error (native "get_pcvar_num")
[AMXX]    [0] 102346.attach::fwdPlayerSpawn (line 49)
I cant recreate this i played for nearly 2 hours... Is the plugin working because its working on my end.
Doc-Holiday is offline
eduardolucioac
Member
Join Date: Jan 2016
Old 01-30-2016 , 16:59   Re: Vip Menu
Reply With Quote #25

For me was the same error!

Quote:
BUILD 4554 SERVER (0 CRC)
Server # 1
Missing RIFF/WAVE chunks
L 01/30/2016 - 20:00:40: Invalid CVAR pointer
L 01/30/2016 - 20:00:40: [AMXX] Displaying debug trace (plugin "VIP_Menu.amxx")
L 01/30/2016 - 20:00:40: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 01/30/2016 - 20:00:40: [AMXX] [0] VIP_Menu.sma::fwdPlayerSpawn (line 49)
AUX29 is unbound.
CS_RE-MOD connected
CS_RE-MOD is joining the Counter-Terrorist force
L 01/30/2016 - 20:00:44: Invalid CVAR pointer
L 01/30/2016 - 20:00:44: [AMXX] Displaying debug trace (plugin "VIP_Menu.amxx")
L 01/30/2016 - 20:00:44: [AMXX] Run time error 10: native error (native "get_pcvar_num")
L 01/30/2016 - 20:00:44: [AMXX] [0] VIP_Menu.sma::fwdPlayerSpawn (line 49)
Any solution?

[]'s

Last edited by eduardolucioac; 01-30-2016 at 17:02.
eduardolucioac is offline
eduardolucioac
Member
Join Date: Jan 2016
Old 01-30-2016 , 17:40   Re: Vip Menu
Reply With Quote #26

Here's the solution!

From what I can understand... The order of tese lines...

Quote:
//Player events
RegisterHam(Ham_Spawn, "player", "fwdPlayerSpawn", 1);
RegisterHam(Ham_Spawn, "czbot", "fwdPlayerSpawn", 1);
... inside that...

Quote:
public plugin_init()
{
//Register Plguin
register_plugin("Vip Menu", "0.0.4", "SavSin");

//Cvars
g_iSwitch = register_cvar("vip_enabled", "1");
g_iAmmo = register_cvar("vip_ammo", "200");

//Create menu for VIP
g_mVipMenu = menu_create("Vip Gun Menu","HandleVipMenu");

//Add items to menu
for(new i = 1; i < sizeof(g_WeaponDesc); i++)
{
menu_additem( g_mVipMenu, g_WeaponDesc[i]);
}

//Block the exit option of menu
menu_setprop( g_mVipMenu , MPROP_EXIT , MEXIT_NEVER );

//Player events
RegisterHam(Ham_Spawn, "player", "fwdPlayerSpawn", 1);
RegisterHam(Ham_Spawn, "czbot", "fwdPlayerSpawn", 1);

}
... influences the result! For more details see what it says "SnoW" on https://forums.alliedmods.net/showthread.php?t=107792.

"Doc-Holiday", I ask you make this adjustment!

Thanks!

Last edited by eduardolucioac; 01-30-2016 at 18:03.
eduardolucioac is offline
Reply


Thread Tools
Display Modes

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:21.


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