Error 047, help me
#1

The line
Quote:

GangStat[i][Leader] = dini_Get(GangStat[i][GangFile], "Leader");
GangStat[i][GangName] = dini_Get(GangStat[i][GangFile], "Name");
GangStat[i][MOTD] = dini_Get(GangStat[i][GangFile], "MOTD");
GangStat[i][Rank1] = dini_Get(GangStat[i][GangFile], "Rank1");
GangStat[i][Rank2] = dini_Get(GangStat[i][GangFile], "Rank2");
GangStat[i][Rank3] = dini_Get(GangStat[i][GangFile], "Rank3");
GangStat[i][Rank4] = dini_Get(GangStat[i][GangFile], "Rank4");
GangStat[i][Rank5] = dini_Get(GangStat[i][GangFile], "Rank5");
GangStat[i][Rank6] = dini_Get(GangStat[i][GangFile], "Rank6");

The error:
Quote:

.pwn(1557) : error 047: array sizes do not match, or destination array is too small
.pwn(155 : error 047: array sizes do not match, or destination array is too small
.pwn(1559) : error 047: array sizes do not match, or destination array is too small
.pwn(1561) : error 047: array sizes do not match, or destination array is too small
.pwn(1562) : error 047: array sizes do not match, or destination array is too small
.pwn(1563) : error 047: array sizes do not match, or destination array is too small
.pwn(1564) : error 047: array sizes do not match, or destination array is too small
.pwn(1565) : error 047: array sizes do not match, or destination array is too small
.pwn(1566) : error 047: array sizes do not match, or destination array is too small

help me please
Reply
#2

You can't simply do GangStats[i][blah] =dini_Get(.....) because it's a string.

You have to do

pawn Код:
format(GangStats[i][blah],sizeof(GangStats[i][blah]),"%s",dini_Get(.....));
in the "enum", make sure you have blah[64] and not just blah.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)