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
Author Message
wEr3
Junior Member
Join Date: Jun 2017
Old 09-10-2022 , 14:35   HELP!! #define macros value with 2D arrays player data
Reply With Quote #1

PHP Code:
//#define P_SKILL1                1        // Skill 1 level
    //#define P_SKILL2                2        // Skill 2 level
    //#define P_SKILL3                3        // Skill 4 level
    //#define P_ULTIMATE              4        // Ultimate level
    #define P_LEVEL                    5        // Player Level
    #define P_XP                    6        // Current XP

    // Miscellaneous options
    #define P_SPECMODE                7        // Used to determine if the player is spectating or not
    #define P_SHOWRACEMENU            8        // Should we show the race menu when the player respawns?
    #define P_SHOWICONS                9        // Show player icons/levels for this player?
    #define P_CHANGERACE            10        // Holds the value of what race to change to when the following round starts

    // Used for weapon Reincarnation
    #define P_FLASHCOUNT            11        // Number of flash grenades bought that round
    #define    P_HECOUNT                12        // Number of HE's bought that round
    #define P_SMOKECOUNT            13        // Number of smoke grenades bought that round
    #define P_ARMORONDEATH            14        // Amount of armor the player had when he/she died
    #define P_LASTARMOR                15        // This will contain the previous value of P_ARMORONDEATH

    // Used by various ultimates/abilities
    #define P_TELEMENU                16        // Used by teleport
    #define P_TEAM                    17        // Stores the player's team ID
    //#define P_SHADOWCOUNT            18        // Number of shadow strikes the player has left
    #define P_SERPENTCOUNT            19        // Number of serpent wards the player has left
    #define P_RINGS                    20
    #define P_ULTIMATEDELAY            21
    #define P_RESPAWNBY                22        // Stores how the user is going to respawn

    // Used for DOD
    #define P_MONEY                    23        // Amount of money the player has

    #define P_LAST                    24 
I have hard time understanding those #define values p_data has 33 rows for 32 player but ONLY 24 columns
PHP Code:
new p_data[33][P_LAST]                    // Contains player data

ULT_ResetCooldownidiTimeiHideIcon true )
{
    
p_data[id][P_ULTIMATEDELAY]        = iTime;
    
    
// Hide the user's ultimate icon
    
if ( iHideIcon )
    {
        
ULT_IconidICON_HIDE );
    }
why P_ULTIMATEDELAY has value  21 there are 32 player can someone explain in deep 
I will really  appreciate it

I'm trying to CREATE my Warcraft 3 MODE for ZOMBIE BIOHAZARD , because this mod is created originally for classic.
and it is frustrating. 

Last edited by wEr3; 09-10-2022 at 14:37.
wEr3 is offline
 


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


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