new const
Posted: 2011 Jan 24 21:02
Sveiki, taigi padaryti su const 1 dalyką, sakykim turiu
Viename metode, gaunu iš kur žaidėjas yra su geoip_country (įsaugoju į iCountry[33]), sakykim gaunu ir gaunu Estonia, dabar aš jam noriu parodyti tokį tekstą:
You are from Estonia, your text is EE05... Kaip tai padaryti ?
Bandziau
Bet neveikia
Code: Select all
new const g_country_name[][] ={ "Finland", "Sweden", "Estonia"};
Code: Select all
new const g_country_text[sizeof g_country_name][] ={ "FI05", "SE05", "EE05"};
You are from Estonia, your text is EE05... Kaip tai padaryti ?
Bandziau
meta error... Array must be indexed (variable "iCountry")"You are from %s, your text is %s", iCountry[id], g_country_text[iCountry] )
Bet neveikia
