04.07.2011, 16:54
i have this error :
error 033: array must be indexed (variable "BM")
in this dialog response :
in this line :
can any one fix it ?
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", "!дфчгъ аъ лм лсфк бдцмзд", "айщеш", "бйием");
Код HTML:
dUserSetINT(PlayerName2(playerid)).("BankMoney", BM+Put);