Raised This Month: $ Target: $400
 0% 

HELP!! #define macros value with 2D arrays player data


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
wEr3
Junior Member
Join Date: Jun 2017
Old 09-10-2022 , 21:50   Re: HELP!! #define macros value with 2D arrays player data
Reply With Quote #7

i'm not sure is that because can you explain this.
#define P_SHOWICONS 9
#define P_SERPENTCOUNT 19

Quote:


CS_GetIcon( id )
{
new szInfo[32];
get_user_info( id, "_wc3", szInfo, 31 );

if ( strlen( szInfo ) > 0 && str_to_num( szInfo ) > 0 )
{
p_data[id][P_SHOWICONS] = true;
}
else
{
p_data[id][P_SHOWICONS] = false;
}

Quote:
WC3_ResetOnNewSession( id )
{
// Shadow Hunter's Serpent Wards
p_data[id][P_SERPENTCOUNT] = 0;



Last edited by wEr3; 09-10-2022 at 21:52.
wEr3 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:34.


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