Raised This Month: $ Target: $400
 0% 

I need on retrieveing individual data.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
nnajko
Senior Member
Join Date: May 2009
Location: Sweden
Old 02-10-2013 , 10:10   Re: I need on retrieveing individual data.
Reply With Quote #4

Yeah use a variable
PHP Code:
#include <amxmodx>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

enum _:Class
{
    
Dog 0,
    
Bear,
    
Cat
}

enum Data
{
    
Level,
    
EXP
}

new 
pInfo[33][Class][Data];
new 
g_iPlayerClass[33];

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say /test""CmdTest");
}

public 
CmdTest(id)
{
    
g_iPlayerClass[id] = Dog;
    
    
pInfo[id][g_iPlayerClass[id]][EXP] += 50;


Last edited by nnajko; 02-10-2013 at 10:13.
nnajko 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 20:31.


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