problem with a report system
#1

hi

ive got report system

and in this script line:

Код:
format(path, 68, "/%s/%i.ini", dini_path, ID[listitem]);
			autor = DOF2_GetInt(path, "reporter");
			subject = DOF2_GetInt(path, "subject");
			description = DOF2_GetInt(path, "description");
			reason = DOF2_GetInt(path, "reason");
			time = DOF2_GetInt(path, "time");
			DOF2_GetInt(path, "read", 1);
			SetPVarInt(playerid,"sTicket",ID[listitem]);
i get this type of errors:

Код:
E:\New Folder\report.pwn(226) : error 033: array must be indexed (variable "autor")
E:\New Folder\report.pwn(227) : error 033: array must be indexed (variable "subject")
E:\New Folder\report.pwn(228) : error 033: array must be indexed (variable "description")
E:\New Folder\report.pwn(229) : error 033: array must be indexed (variable "reason")
E:\New Folder\report.pwn(230) : error 033: array must be indexed (variable "time")
i think its is cause of this "dini_path" dont know how to make it into DOF2



for help rep+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)