help in stocks
#5

Thanks for helping but still 2 warnings


Код:
C:\Users\BCC\Desktop\ZMRP\gamemodes\TEST.pwn(1771) : warning 202: number of arguments does not match definition
C:\Users\BCC\Desktop\ZMRP\gamemodes\TEST.pwn(1771) : warning 202: number of arguments does not match definition
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Warnings.
here is the code

Код:
//==============================================================================
stock SendReportToQue(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); // the 2 warnings are here
        new string[128];
		format(string, sizeof(string), "Report from [%i] %s (RID: %i): %s", reportfrom, GetPlayerName(reportfrom), newid, report);
        ABroadCast(COLOR_REPORT,string,2);
    }
    else
    {
        ClearReports();
        SendReportToQue(reportfrom, report);
    }
    if(PlayerInfo[reportfrom][pDonateRank] == 4)
    {
        new string[128];
		format(string, sizeof(string), "~r~Priority Report: ~g~%d", newid);
		foreach(Player, i)
		{
		    if(PlayerInfo[i][AdminLevel] >= 2)
		    {
		        GameTextForPlayer(i, string, 1500, 1);
			}
		}
	}
}
Reply


Messages In This Thread
help in stocks - by Youice - 08.03.2012, 18:58
Re: help in stocks - by SpiritEvil - 08.03.2012, 18:59
Re: help in stocks - by Youice - 08.03.2012, 19:10
Re: help in stocks - by SpiritEvil - 08.03.2012, 19:13
Re: help in stocks - by Youice - 08.03.2012, 19:25
Re: help in stocks - by SpiritEvil - 08.03.2012, 19:34
Re: help in stocks - by Youice - 08.03.2012, 19:43
Re: help in stocks - by SpiritEvil - 08.03.2012, 19:45
Re: help in stocks - by Youice - 08.03.2012, 19:49
Re: help in stocks - by SpiritEvil - 08.03.2012, 19:56

Forum Jump:


Users browsing this thread: 1 Guest(s)