Dini Get - 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 (
/showthread.php?tid=321879)
Dini Get -
Nuke547 - 28.02.2012
Everytime I compile, I get this error:
PHP код:
(4935) : error 047: array sizes do not match, or destination array is too small
(4936) : error 047: array sizes do not match, or destination array is too small
(4937) : error 047: array sizes do not match, or destination array is too small
(4938) : error 047: array sizes do not match, or destination array is too small
This is the lines the errors are on
PHP код:
Player[playerid][CarPlate] = dini_Get(string, "CarPlate");
Player[playerid][CarPlate2] = dini_Get(string, "CarPlate2");
Player[playerid][CarPlate3] = dini_Get(string, "CarPlate3");
Player[playerid][CarPlate4] = dini_Get(string, "CarPlate4");
Player[playerid][CarPlate5] = dini_Get(string, "CarPlate5");
and this is my enum:
PHP код:
CarPlate[100],
CarPlate2[100],
CarPlate3[100],
CarPlate4[100],
CarPlate5[100],
Re: Dini Get -
Konstantinos - 28.02.2012
It's probably too small. Make the string size bigger.
Re: Dini Get -
Nuke547 - 28.02.2012
Quote:
Originally Posted by Dwane
It's probably too small. Make the string size bigger.
|
Thanks, Worked.