array too small - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: array too small (
/showthread.php?tid=287837)
array too small -
Jack_Leslie - 05.10.2011
This line:
pawn Код:
gatepass = dini_Get(string, "pGatePassword");
I also have above it:
string is:
pawn Код:
format(string, sizeof(string), "Dill_Bellum.ini");
pGatePassword is:
Re: array too small - [L3th4l] - 05.10.2011
IIRC, Dini requires you to use 256 string size, thus giving you that warning.
Re: array too small -
Jack_Leslie - 05.10.2011
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.
Re: array too small - [L3th4l] - 05.10.2011
Yes, error my bad. IIRC ( If I Remember Correctly ) :d