Dini/Array must be indexed.
#1

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")
Reply
#2

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
Reply
#3

pawn Код:
if(final > dini_Int("ServerInfo.dudb.sav", "BiggestFish"))
{
    ItsBigger();   
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)