Errors unable to fix - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Errors unable to fix (
/showthread.php?tid=125260)
Errors unable to fix -
lolumadd - 03.02.2010
Hello I have been working on a dynamic business system and succeeded except for this part. None of my friends know so I have resorted for asking the forum.
I have this part of code:
pawn Код:
new BizNumber[128];
new TOTAL_BIZZ = dini_Int("business_system.cfg", "Number");
new field[13];
for(new i=0; i < TOTAL_BIZZ + 1; i++)
{
format(BizNumber, sizeof(BizNumber), "Biz%d", i);
if(dini_Isset("business_system.cfg", BizNumber))
{
#1 split(dini_Get("business_system.cfg", BizNumber),field,'|');
if(PlayerToPoint(5.0, playerid, field[1], field[2], field[3]))
{
Errors:
Код:
1. error 048: array dimensions do not match #1
Now if I change that to this
pawn Код:
#2 new input[256] = dini_Get("business_sytem.cfg", BizNumber);
#3 split(input, etc....);
I get:
Код:
error 008: must be a constant expression; assumed zero #2
error 048: array dimensions do not match #3
Please help because I do not know what to do.
Thanks everyone.
Re: Errors unable to fix -
lolumadd - 03.02.2010
BUMP! I really need this, kthx
Re: Errors unable to fix -
lolumadd - 06.02.2010
Bump again...
Re: Errors unable to fix -
MadeMan - 06.02.2010