SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Closed Thread
Thread Tools Display Modes
Old 26/02/2015, 10:49 AM   #1
Little Clucker
Join Date: May 2014
Posts: 3
Reputation: 0
Unhappy SendReportToQueue - I Got $ome error$

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(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));
        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..
imnotadmin is offline  
Old 26/02/2015, 10:55 AM   #2
BroZeus's Avatar
Join Date: Jan 2014
Location: India
Posts: 1,405
Reputation: 173
Default Re: SendReportToQueue - I Got $ome error$

Point out the exact lines.

"Be the change that you wish to see in the world."

Check out my Github profile!
BroZeus is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
error 017: undefined symbol,fatal error 107: too many error messages on one line Slicebook Scripting Help 11 04/05/2014 09:30 PM
An error has occured. (Error ID: 1064, You have an error in your SQL syntax; check the manual that corresponds.... rati555 Scripting Help 1 14/09/2012 08:45 PM
Registered plate stock error 'error 076: syntax error in the expression, or invalid function call' Deal-or-die Scripting Help 2 25/06/2012 04:12 PM
Error message: : error 030: compound statement not closed at the end of file (started at line 503) David5290 Scripting Help 5 13/04/2012 04:50 AM
I get tagmismatch error, But i cant find any error error Swiftz Help Archive 1 16/04/2011 05:31 AM

All times are GMT. The time now is 05:34 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.