Dini/Array must be indexed. - 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: Dini/Array must be indexed. (
/showthread.php?tid=149724)
Dini/Array must be indexed. -
Kyle - 23.05.2010
I have a file called ServerInfo.dudb.sav.
In that file I have a varible called - BiggestFish=50
I got this code to check if final is bigger then the value of Biggest Fish.
Код:
format(strin,sizeof(strin),"ServerInfo.dudb.sav");
if(final > dini_Get(strin, "BiggestFish"))
{
}
But I seem to get errored with:
error 033: array must be indexed (variable "dini_Get")
Re: Dini/Array must be indexed. -
SloProKiller - 23.05.2010
Quote:
Originally Posted by Mr_Tom
I have a file called ServerInfo.dudb.sav.
In that file I have a varible called - BiggestFish=50
I got this code to check if final is bigger then the value of Biggest Fish.
Код:
format(strin,sizeof(strin),"ServerInfo.dudb.sav");
if(final > dini_Get(strin, "BiggestFish"))
{
}
But I seem to get errored with:
error 033: array must be indexed (variable "dini_Get")
|
Try dini_IntGet
Re: Dini/Array must be indexed. -
woot - 23.05.2010
pawn Код:
if(final > dini_Int("ServerInfo.dudb.sav", "BiggestFish"))
{
ItsBigger();
}