Raised This Month: $ Target: $400
 0% 

Variable (array?) trouble...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
BigDontCry
Member
Join Date: Nov 2007
Location: Sweden
Old 11-16-2007 , 06:18   Variable (array?) trouble...
Reply With Quote #1

Hey.

What I'm trying to do is this:
PHP Code:
#define MAX_PLAYERS 33
#define TOTAL_RACES 5
 
new g_PlayerXP[MAX_PLAYERS][TOTAL_RACES]
new 
g_PlayerLevel[MAX_PLAYERS][TOTAL_RACES
...and when I try this for example:
PHP Code:
g_PlayerXP[id][3] = 200
client_print
(idprint_chat"XP: %d"g_PlayerXP[id][3]) 
It just returns 0 when I try to print it on screen...

Suggestions?
__________________
Big Men Don't Cry

Quote:
[20:23] [email protected]: I don't know how
[20:23] [email protected]: I'm only 15
[20:23] [email protected]: I don't know anything
BigDontCry 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 01:12.


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