error 033: array must be indexed (variable "raison")
#1

I try to make something for offline players...
But it have a error;
"error 033: array must be indexed (variable "raison")"
Please tell me how to fix it :d
Код:
CMD:szcz2(playerid, params[])
{
                    new raison[41], cible[MAX_PLAYER_NAME];
                    if(sscanf(params,"s[24]s[40]",cible,raison)) return SendClientMessage(playerid, -1, "/szcz2 [name] [var]");
                    new filename2[50];
           			format(filename2, sizeof(filename2), "/FantasyLandUsers/%s.ini", cible);
           			if(!fexist(filename2)) return ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX, "错误", "没有这个玩家的数据", "Okay", "");
           			else
           			{
              			 new INI:File = INI_Open(filename2);
              			 new var = dini_Int(filename2,"Int");
              			 var=var+raison;   //this error
               		  	 INI_SetTag(File, "data");
              			 INI_WriteInt(File, "CZ", var);
               			 INI_Close(File);
           			}
           			return 1;
}
Reply


Messages In This Thread
error 033: array must be indexed (variable "raison") - by 3417512908 - 03.06.2018, 05:10
Re: error 033: array must be indexed (variable "raison") - by 3417512908 - 03.06.2018, 05:21
Re: error 033: array must be indexed (variable "raison") - by Livity - 03.06.2018, 05:40
Re: error 033: array must be indexed (variable "raison") - by GTLS - 03.06.2018, 06:06

Forum Jump:


Users browsing this thread: 1 Guest(s)