SendReportToQueue - I Got $ome error$ - 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: SendReportToQueue - I Got $ome error$ (
/showthread.php?tid=565254)
SendReportToQueue - I Got $ome error$ -
imnotadmin - 26.02.2015
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$.
Re: SendReportToQueue - I Got $ome error$ -
BroZeus - 26.02.2015
Point out the exact lines.