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(id, print_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")