06.04.2018, 03:39
(
Последний раз редактировалось Jokers98s; 06.04.2018 в 04:33.
)
Error
Code on error
Function area
PHP код:
error 012: invalid function call, not a valid address
PHP код:
Dialog:DIALOG_REPORT(playerid, response, listitem, inputtext[])
{
if(!response) return 1;
if(response)
{
readingReport(playerid,listitem); //error
}
return 1;
}
PHP код:
forward readingReport(playerid,id);
public readingReport(playerid,id)
{
new str3[1024], Status[150];
if(ReportInfo[id][rStatus] == 1) Status = "{F20000}Untreated";
if(ReportInfo[id][rStatus] == 2) Status = "{F2B100}Processed by";
if(ReportInfo[id][rStatus] == 3) Status = "{00CE00}Being processed";
if(ReportInfo[id][rStatus] == 2)
{
format(str3, 1024, "\n\t%s %s\n{FEFEFE}Name: %s\nAccused: %s\nDate: %d/%d/%d\nTime: %d:%d\nReason: %s",
Status,ReportInfo[id][rNameprocessed],ReportInfo[id][rName],ReportInfo[id][rFor],
ReportInfo[id][rDate][2],ReportInfo[id][rDate][1],ReportInfo[id][rDate][0],
ReportInfo[id][rTime][1],ReportInfo[id][rTime][0],ReportInfo[id][rText]);
}
else
{
format(str3, 1024, "\n\t%s\n{FEFEFE}Name: %s\nnAccused: %s\nDate: %d/%d/%d\nTime: %d:%d\nReason: %s",
Status,ReportInfo[id][rName],ReportInfo[id][rFor],
ReportInfo[id][rDate][2],ReportInfo[id][rDate][1],ReportInfo[id][rDate][0],
ReportInfo[id][rTime][1],ReportInfo[id][rTime][0],ReportInfo[id][rText]);
}
Dialog_Show(playerid,DIALOG_REPORT1,DIALOG_STYLE_MSGBOX,"Reading the report",str3,"Edit","Retour");
readingReport[playerid] = id;
return 1;
}