Raised This Month: $ Target: $400
 0% 

[ Enums Problem ]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Xablau
Member
Join Date: Dec 2014
Old 01-06-2015 , 16:42   [ Enums Problem ]
Reply With Quote #1

I have problem on enums :/

See my code:

PHP Code:
enum _:p_DataColumns
{
    
max_health
}
new 
p_Datap_DataColumns ][ ClassColumnStruct ] = 
{
    { 
"max_health"Column_Int11 }
}
public 
plugin_init() 
{
    
RegisterHam(Ham_Spawn"player""Player_Spawn"1); 
}
public 
Player_Spawn(id
{
    
client_print(idprint_chat"New HP: %d"p_Data[id][max_health])
}
public 
client_putinserver(id)
{
    
p_Data[id][max_health] = 200

Player_Spawn is not returning the correct value. Why?
Xablau is offline
 



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 15:17.


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