dini_Get error - 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: dini_Get error (
/showthread.php?tid=329081)
dini_Get error -
adampoconnor - 27.03.2012
Okay so I was scripting recently and I came across this error that my good 'ol buddy ****** couldn't help me fix.
Error:
pawn Код:
Error 47: array sizes do not match, or destination array is too small
And the line that it is giving me an error on is:
pawn Код:
Vehicle[vehicleid][vOwner] = dini_Get(file,"Owner"):
Before you write anything here are some answers to a few questions you have:
1.)Yes I have the "format(file" and enum already made
2.)This is the only thing I get an error on. It seems to be dini_Get that is so picky....
Re: dini_Get error -
[HiC]TheKiller - 27.03.2012
Use
https://sampwiki.blast.hk/wiki/Strcat
Re: dini_Get error -
Kar - 27.03.2012
pawn Код:
strmid(Vehicle[vehicleid][vOwner], dini_Get(file, "Owner"), false, strlen(dini_Get(file, "Owner")), MAX_PLAYER_NAME);
Re: dini_Get error -
adampoconnor - 27.03.2012
Kar's worked. Thanks mate.
Re : dini_Get error -
Miro96 - 07.07.2013
N1 kar