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

Solved Help with Global things


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 08-15-2018 , 16:29   Help with Global things
Reply With Quote #1

so i Have the following code

PHP Code:
#include "ze_functions.sp"

ConVar     g_cvHumanHP;


public 
void OnPluginStart()
{
    
// CREATING CONSOLE VARIABLES //
    
g_cvHumanHP     =     CreateConVar("ze_human_hp""100""The default HP for the player that aren't VIP");


and in ze_functions.sp

PHP Code:
..
        
SetEntProp(iClientProp_Send"m_ArmorValue"GetConVarInt(g_cvHumanArmor));
.. 
the problem is when i try to copile this error occurs "error 017: undefined symbol "g_cvHumanArmor""

Last edited by kratoss1812; 08-16-2018 at 05:52.
kratoss1812 is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 08-15-2018 , 16:50   Re: Help with Global things
Reply With Quote #2

You haven't declared a variable named g_cvHumanArmor, then. In the first code block, you have one named g_cvHumanHP.
Fyren is offline
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 08-16-2018 , 02:27   Re: Help with Global things
Reply With Quote #3

Quote:
Originally Posted by Fyren View Post
You haven't declared a variable named g_cvHumanArmor, then. In the first code block, you have one named g_cvHumanHP.

that variable is declarated
even if i replace the g_cvHumanArmor with g_cvHumanHP the rezuilt is the same
kratoss1812 is offline
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
Old 08-16-2018 , 02:31   Re: Help with Global things
Reply With Quote #4

Show full code for both plugins if you want help. We can't read minds.
__________________
Psyk0tik is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 08-16-2018 , 02:50   Re: Help with Global things
Reply With Quote #5

put #include "ze_functions.sp"
AFTER OnPluginStart
__________________
8guawong is offline
kratoss1812
Senior Member
Join Date: May 2018
Location: Romānia
Old 08-16-2018 , 05:52   Re: Help with Global things
Reply With Quote #6

Quote:
Originally Posted by 8guawong View Post
put #include "ze_functions.sp"
AFTER OnPluginStart
thanks
kratoss1812 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 02:59.


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