array must be indexed (variable "dini_Get") - help with this please. - 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: array must be indexed (variable "dini_Get") - help with this please. (
/showthread.php?tid=568173)
array must be indexed (variable "dini_Get") - help with this please. -
Camorra - 20.03.2015
Fixed
Re: array must be indexed (variable "dini_Get") - help with this please. -
MafiaOink - 20.03.2015
You cannot use dini_Get in a if(
I think so..
This has happened to me twice you should first use dini_Get then store the faction in a variable then you can use it like if(PlayerInfo[h][playerteam] == id)
Re: array must be indexed (variable "dini_Get") - help with this please. -
KeNTos - 20.03.2015
dini_Get(filename2, "Faction") APPROPRIATE variable, and Pat uses it.
I am sorry for my english
Re: array must be indexed (variable "dini_Get") - help with this please. -
Camorra - 20.03.2015
Fixed,
i had to do - if(PlayerInfo[h][playerteam] == dini_Int(filename2,"Faction"))
dini_Int - instead of dini_get
Re: array must be indexed (variable "dini_Get") - help with this please. -
MafiaOink - 20.03.2015
EDIT:
You just fixed it lol
You confused me too