Raised This Month: $51 Target: $400
 12% 

multiple consts


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
reinert
Veteran Member
Join Date: Feb 2007
Old 01-24-2011 , 14:20   multiple consts
Reply With Quote #1

Hey, Right now I've got

2 constants like:
PHP Code:
new const g_country_name[][] ={    "Finland",    "Sweden",    "Estonia"}; 
and

PHP Code:
new const g_country_text[sizeof g_country_name][] ={    "FI05",    "SE05",    "EE05"}; 
Also I've got iCountry[33]; array that gets every players country name (lets take for example Estonia)...

Now I would like to show him message like You are from Estonia, your text is EE05, how could I do that ?

I've tried this:

PHP Code:
client_print(idprint_chat"You are from %s, your text is %s"iCountry[id], g_country_text[iCountry] ) 
I get error while compiling:

Array must be indexed (variable "iCountry")
reinert 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 13:11.


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