Raised This Month: $ Target: $400
 0% 

Solved Store Attacker damage in dinamic array for every victim


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-13-2021 , 13:51   Re: Store Attacker damage in dinamic array for every victim
Reply With Quote #2

use tries it will make your life much easiers than dynamic arrays for this kind purpose since you're seeking using strings.

also if you're using an array for a limited size such as max players you can make a 3d array it will be better.

PHP Code:
enum _:PlayerStats
{
    
AttackerName[MAX_NAME_LENGTH],
    
DamageGiven,
    
DamageReceived
}

new 
g_victim_stats[33][33][PlayerStats]

g_victim_statsVICTIM_ID ] [ ATTACKER_ID ] [ PlayerStats 
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 07-13-2021 at 15:00.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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


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