error 018: initialization data exceeds declared size
#1

I have some problems...

All code.I got error 018: initialization data exceeds declared size
Код:
new Material[24][5] = {
{3925, "weemap", "skyclouds", "蓝天白云", 15000}, //error 018: initialization data exceeds declared size
{5134, "wasteland_las2", "ws_sandstone2", "石砖", 6000},
{17298, "weefarmcuntw", "sjmbigold2", "木头", 8000},
{16150, "ufo_bar", "dinerfloor01_128", "黑白", 24000},
{18265, "w_town3cs_t", "ws_redbrickold", "砖墙", 4000},
{12954, "sw_furniture", "CJ_WOOD5", "深色木板", 6900},
{8438, "vgseroads", "des_dirt1", "沙漠", 2000},
{8518, "vgsehighways", "hiwayend_256", "高速", 4500},
{8419, "vgsbldng1", "ap_tarmac", "裂开的地板", 3650},
{17009, "truth_farm", "des_ghotwood1", "老旧的木板", 3500},
{10931, "traingen_sfse", "metpat64", "钢铁", 5500},
{12986, "sw_well1", "Bio_64", "生化", 7250},
{8532, "tikigrass", "swimpoolbtm1_128", "白方格", 13000},
{13296, "sw_roadgas", "sw_corrugtile", "破铁片", 2200},
{13066, "sw_fact01a", "kickbarrier", "红与白", 30000},
{6095, "shops01_law", "GB_chatwall03b", "蓝墙", 50000},
{8399, "vgs_shops", "vgsclubwall05_128", "一尘不染", 14000},
{3975, "lanbloke", "p_floor3", "沥青", 8600},
{3310, "sw_poorhouse", "Grass_128HV", "草地", 12000},
{18631, "NoModelFile", "NoModelFile", "警告", 9000},
{18838, "MickyTextures", "ws_gayflag1", "彩虹", 35000},
{19058, "XmasBoxes", "wrappingpaper28", "星星", 41000},
{19443, "all_walls", "mp_shop_floor2", "浅色木板", 7950},
{19325, "lsmall_shops", "lsmall_window01", "浅灰透明", 36500}
};
Reply
#2

PHP код:
enum e_material {
    
integer,
    
string[24],
    
string2[24],
    
string3[24],
    
integer2
};
new 
Material[][e_material] = {
{
3925"weemap""skyclouds""蓝天白云"15000}, //error 018: initialization data exceeds declared size
{5134"wasteland_las2""ws_sandstone2""石砖"6000},
{
17298"weefarmcuntw""sjmbigold2""木头"8000},
{
16150"ufo_bar""dinerfloor01_128""黑白"24000},
{
18265"w_town3cs_t""ws_redbrickold""砖墙"4000},
{
12954"sw_furniture""CJ_WOOD5""深色木板"6900},
{
8438"vgseroads""des_dirt1""沙漠"2000},
{
8518"vgsehighways""hiwayend_256""高速"4500},
{
8419"vgsbldng1""ap_tarmac""裂开的地板"3650},
{
17009"truth_farm""des_ghotwood1""老旧的木板"3500},
{
10931"traingen_sfse""metpat64""钢铁"5500},
{
12986"sw_well1""Bio_64""生化"7250},
{
8532"tikigrass""swimpoolbtm1_128""白方格"13000},
{
13296"sw_roadgas""sw_corrugtile""破铁片"2200},
{
13066"sw_fact01a""kickbarrier""红与白"30000},
{
6095"shops01_law""GB_chatwall03b""蓝墙"50000},
{
8399"vgs_shops""vgsclubwall05_128""一尘不染"14000},
{
3975"lanbloke""p_floor3""沥青"8600},
{
3310"sw_poorhouse""Grass_128HV""草地"12000},
{
18631"NoModelFile""NoModelFile""警告"9000},
{
18838"MickyTextures""ws_gayflag1""彩虹"35000},
{
19058"XmasBoxes""wrappingpaper28""星星"41000},
{
19443"all_walls""mp_shop_floor2""浅色木板"7950},
{
19325"lsmall_shops""lsmall_window01""浅灰透明"36500}
}; 
better try to make an enum, it would be better.
Reply
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
The enum is better (but not with those awful field names):

Код:
enum E_MATERIAL {   
    E_MATERIAL_OBJECT,
    E_MATERIAL_FILE[24],
    E_MATERIAL_TEXTURE[24],
    E_MATERIAL_DESCRIPTION[24],
    E_MATERIAL_I_DONT_KNOW
};

new Material[][E_MATERIAL] = {
    {3925, "weemap", "skyclouds", "蓝天白云", 15000},
    {5134, "wasteland_las2", "ws_sandstone2", "石砖", 6000},
    {17298, "weefarmcuntw", "sjmbigold2", "木头", 8000},
    {16150, "ufo_bar", "dinerfloor01_128", "黑白", 24000},
    {18265, "w_town3cs_t", "ws_redbrickold", "砖墙", 4000},
    {12954, "sw_furniture", "CJ_WOOD5", "深色木板", 6900},
    {8438, "vgseroads", "des_dirt1", "沙漠", 2000},
    {8518, "vgsehighways", "hiwayend_256", "高速", 4500},
    {8419, "vgsbldng1", "ap_tarmac", "裂开的地板", 3650},
    {17009, "truth_farm", "des_ghotwood1", "老旧的木板", 3500},
    {10931, "traingen_sfse", "metpat64", "钢铁", 5500},
    {12986, "sw_well1", "Bio_64", "生化", 7250},
    {8532, "tikigrass", "swimpoolbtm1_128", "白方格", 13000},
    {13296, "sw_roadgas", "sw_corrugtile", "破铁片", 2200},
    {13066, "sw_fact01a", "kickbarrier", "红与白", 30000},
    {6095, "shops01_law", "GB_chatwall03b", "蓝墙", 50000},
    {8399, "vgs_shops", "vgsclubwall05_128", "一尘不染", 14000},
    {3975, "lanbloke", "p_floor3", "沥青", 8600},
    {3310, "sw_poorhouse", "Grass_128HV", "草地", 12000},
    {18631, "NoModelFile", "NoModelFile", "警告", 9000},
    {18838, "MickyTextures", "ws_gayflag1", "彩虹", 35000},
    {19058, "XmasBoxes", "wrappingpaper28", "星星", 41000},
    {19443, "all_walls", "mp_shop_floor2", "浅色木板", 7950},
    {19325, "lsmall_shops", "lsmall_window01", "浅灰透明", 36500}
};
Also be aware that due to text encodings, chineese characters may be more than one cell long.
i know that, but it does not matter what name you put there, plus I did not know exactly what were some values there.
Reply
#4

Quote:
Originally Posted by ******
Посмотреть сообщение
The enum is better (but not with those awful field names):

Код:
enum E_MATERIAL {   
    E_MATERIAL_OBJECT,
    E_MATERIAL_FILE[24],
    E_MATERIAL_TEXTURE[24],
    E_MATERIAL_DESCRIPTION[24],
    E_MATERIAL_I_DONT_KNOW
};

new Material[][E_MATERIAL] = {
    {3925, "weemap", "skyclouds", "蓝天白云", 15000},
    {5134, "wasteland_las2", "ws_sandstone2", "石砖", 6000},
    {17298, "weefarmcuntw", "sjmbigold2", "木头", 8000},
    {16150, "ufo_bar", "dinerfloor01_128", "黑白", 24000},
    {18265, "w_town3cs_t", "ws_redbrickold", "砖墙", 4000},
    {12954, "sw_furniture", "CJ_WOOD5", "深色木板", 6900},
    {8438, "vgseroads", "des_dirt1", "沙漠", 2000},
    {8518, "vgsehighways", "hiwayend_256", "高速", 4500},
    {8419, "vgsbldng1", "ap_tarmac", "裂开的地板", 3650},
    {17009, "truth_farm", "des_ghotwood1", "老旧的木板", 3500},
    {10931, "traingen_sfse", "metpat64", "钢铁", 5500},
    {12986, "sw_well1", "Bio_64", "生化", 7250},
    {8532, "tikigrass", "swimpoolbtm1_128", "白方格", 13000},
    {13296, "sw_roadgas", "sw_corrugtile", "破铁片", 2200},
    {13066, "sw_fact01a", "kickbarrier", "红与白", 30000},
    {6095, "shops01_law", "GB_chatwall03b", "蓝墙", 50000},
    {8399, "vgs_shops", "vgsclubwall05_128", "一尘不染", 14000},
    {3975, "lanbloke", "p_floor3", "沥青", 8600},
    {3310, "sw_poorhouse", "Grass_128HV", "草地", 12000},
    {18631, "NoModelFile", "NoModelFile", "警告", 9000},
    {18838, "MickyTextures", "ws_gayflag1", "彩虹", 35000},
    {19058, "XmasBoxes", "wrappingpaper28", "星星", 41000},
    {19443, "all_walls", "mp_shop_floor2", "浅色木板", 7950},
    {19325, "lsmall_shops", "lsmall_window01", "浅灰透明", 36500}
};
Also be aware that due to text encodings, chineese characters may be more than one cell long.
NICE!It was worked.Thank for ****** now my problem is solve.
By the way.A Chinese character occupy two string.
Reply
#5

Quote:
Originally Posted by 3417512908
Посмотреть сообщение
NICE!It was worked.Thank for ****** now my problem is solve.
By the way.A Chinese character occupy two string.
seriously, is my post useless?
Reply
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
Yes, I told you that. It blatantly DOES matter what you call things, you picked the most generic and un-namespaced names possible.
here is scripting help, you do not need to give it everything done, finally.
it's normal that of two people who have the same idea, only the idea to the better known person is good no matter if they are the same.
beautiful human thinking.
PS: I have nothing personal with you, it's not about you and the thinking of everyone.
Reply
#7

Quote:
Originally Posted by Florin48
Посмотреть сообщение
here is scripting help, you do not need to give it everything done, finally.
it's normal that of two people who have the same idea, only the idea to the better known person is good no matter if they are the same.
beautiful human thinking.
PS: I have nothing personal with you, it's not about you and the thinking of everyone.
Your and ****** code is the same - but, his code is just more cleaner and organized. He corrected you, so you can learn instead of being arrogant.
Reply
#8

Quote:
Originally Posted by Logic_
Посмотреть сообщение
Your and ****** code is the same - but, his code is just more cleaner and organized. He corrected you, so you can learn instead of being arrogant.
I do not need your advice, he anywhere put what name I want what matters, in the end I'm referring to human thinking, yes I do not care what you understand is useless to talk to some people, say that any help is appreciated, and mine was not so fucking leave with your words.
And why did you just post to tell me this and what if I'm arrogant, I'm arrogant only when I know the difference is, I have nothing with him or you is just about appreciating what I did.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)