SA-MP Forums Archive
[help] 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: [help] array must be indexed (/showthread.php?tid=266374)



[help] array must be indexed - TeRmi[N]aTor - 04.07.2011

i have this error :
error 033: array must be indexed (variable "BM")

in this dialog response :
Код HTML:
 		if(listitem == 0)//мдфчйг змч
		{
		ShowPlayerDialog(playerid, 3, DIALOG_STYLE_INPUT, "Bank", "длрс аъ дслен аеъе ъшцд мдфчйг", "айщеш", "бйием");
		}
		else if(listitem == 1)//мдфчйг длм
		{
    	new Put;
   		new text[256];
		new file[256];
   		new BM[256]; BM = dini_Get(file,"BankMoney");
		if(GetPlayerMoney(playerid) < 1)return SendClientMessage(playerid,red,"айп тмйк лсу");
		Put = GetPlayerMoney(playerid);
		dUserSetINT(PlayerName2(playerid)).("BankMoney", BM+Put);
		GivePlayerMoney(playerid,-Put);
		format(text,sizeof(text),"! $%d дфчгъ бзщбеп дбрч щмк",dini_Int(file,"BankMoney"));
    	SendClientMessage(playerid,green,text);
        ShowPlayerDialog(playerid, 4, DIALOG_STYLE_MSGBOX, "Bank", "!дфчгъ аъ лм лсфк бдцмзд", "айщеш", "бйием");
in this line :
Код HTML:
		dUserSetINT(PlayerName2(playerid)).("BankMoney", BM+Put);
can any one fix it ?