SendReportToQueue - I Got $ome error$
#1

Hello Everyone!
Today, I Wa$ compiling my RolePlay $cript, but When I fini$hed it. I got error in the$e line$
Код:
stock SendReportToQueue(ReportFrom, Report[])
{
    new bool:breakingloop = false, newid = INVALID_REPORT_ID;

	for(new i=0;i<MAX_REPORTS;i++)
	{
		if(!breakingloop)
		{
			if(Reports[i][HasBeenUsed] == 0)
			{
				breakingloop = true;
				newid = i;
			}
		}
    }
    if(newid != INVALID_REPORT_ID)
    {
        strmid(Reports[newid][Report], Report, 0, strlen(report), 140);
        Reports[newid][ReportFrom] = ReportFrom;
        Reports[newid][TimeToExpire] = 5;
        Reports[newid][HasBeenUsed] = 1;
        Reports[newid][BeingUsed] = 1;
        Reports[newid][ReportExpireTimer] = SetTimerEx("ReportTimer", 60000, 0, "d", newid);
        new string[140];
        format(string, sizeof(string), "Report from [%i] %s (RID: %i): %s", ReportFrom, GetPlayerNameEx(ReportFrom), newid, (report));
        ABroadCast(COLOR_REPORT,string,1);
    }
    else
    {
        ClearReports();
        SendReportToQueue(ReportFrom, report);
    }
}
Error$ :
Код:
E:\DJRP\gamemodes\DJRP.pwn(3657) : error 035: argument type mismatch (argument 2)
E:\DJRP\gamemodes\DJRP.pwn(3665) : error 012: invalid function call, not a valid address
E:\DJRP\gamemodes\DJRP.pwn(3665) : error 001: expected token: ";", but found ")"
E:\DJRP\gamemodes\DJRP.pwn(3665) : error 029: invalid expression, assumed zero
E:\DJRP\gamemodes\DJRP.pwn(3665) : fatal error 107: too many error messages on one line
If $omeone can help me plea$e help..
Thank$.
Reply
#2

Point out the exact lines.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)