SA-MP Forums Archive
SendReport To Queue - 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: SendReport To Queue (/showthread.php?tid=461108)



NEED HELP! - Lisaax - 31.08.2013

I have this erros
C:\Documents and Settings\Lisa\Bureaublad\servers\VLRP\gamemodes\SX RP.pwn(1371) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lisa\Bureaublad\servers\VLRP\gamemodes\SX RP.pwn(1371) : warning 215: expression has no effect
C:\Documents and Settings\Lisa\Bureaublad\servers\VLRP\gamemodes\SX RP.pwn(1371) : error 001: expected token: ";", but found "]"
C:\Documents and Settings\Lisa\Bureaublad\servers\VLRP\gamemodes\SX RP.pwn(1371) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Lisa\Bureaublad\servers\VLRP\gamemodes\SX RP.pwn(1371) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


4 Errors.




This is the code
Код:
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), 128);
        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[128];
        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);
    }
}
The specific line is this
Код:
			if(Reports[i][HasBeenUsed] == 0)



Re: SendReport To Queue - Lisaax - 31.08.2013

BUMP