SA-MP Forums Archive
problem with a report system - 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: problem with a report system (/showthread.php?tid=415439)



problem with a report system - RoXONPL - 13.02.2013

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+