array too small
#1

This line:
pawn Код:
gatepass = dini_Get(string, "pGatePassword");
I also have above it:
pawn Код:
new gatepass[128];
string is:
pawn Код:
format(string, sizeof(string), "Dill_Bellum.ini");
pGatePassword is:
pawn Код:
pGatePassword[128]
Reply
#2

IIRC, Dini requires you to use 256 string size, thus giving you that warning.
Reply
#3

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
IIRC, Dini requires you to use 256 string size, thus giving you that warning.
I don't know what IIRC means, but changing the size to 256 fixed the problem (error by teh way, not warning), even though other strings were using 128... no idea, but it fixed it, thank you.
Reply
#4

Yes, error my bad. IIRC ( If I Remember Correctly ) :d
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)