Raised This Month: $ Target: $400
 0% 

3d Array using map name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 08-10-2013 , 17:52   Re: 3d Array using map name
Reply With Quote #1

try something like:
Code:
#include <amxmodx> #include <amxmisc> enum Stats // Test for me :) {     K,     // Kills     A,     // Assists     D,     // Deaths     HS,     // Headshots     ST,     // Shots     HT,     // Hits     DM,     // Damage     RP,     // Rounds Played     RL,     // Rounds Lose     RW,     // Rounds Win     mapName[32] }; new g_iStats[33][Stats];     // UserID, Map Name (?), Stats type new g_mapName[32]; public plugin_init() {     get_mapname(g_mapName, charsmax(g_mapName)); } public client_putinserver(id) {     copy(g_iStats[id][mapName], charsmax(g_iStats[]), g_mapName);     } public client_death(iKiller,iVictim,iWP,iPlace,iTK) {     if (equal(g_iStats[iKiller][mapName], g_mapName))     {         g_iStats[iKiller][K]++;     } }

Last edited by TheDS1337; 08-10-2013 at 17:53.
TheDS1337 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 15:52.


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