08.03.2012, 18:58
hello here is my hex code of my stock for /report s.
here are the warnings:
Код:
stock SendReportToPlayer(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] = SetTimer("ReportTimer", 60000, 0, "d", newid); //2 warnings here new string[128]; format(string, sizeof(string), "Report from [%i] %s (RID: %i): %s", reportfrom, GetPlayerName(reportfrom), newid, (report)); //2 warnings here 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); } } } }
Код:
C:\Users\BCC\Desktop\ZMRP\gamemodes\TEST.pwn(1768) : warning 202: number of arguments does not match definition C:\Users\BCC\Desktop\ZMRP\gamemodes\TEST.pwn(1768) : warning 202: number of arguments does not match definition C:\Users\BCC\Desktop\ZMRP\gamemodes\TEST.pwn(1770) : warning 202: number of arguments does not match definition C:\Users\BCC\Desktop\ZMRP\gamemodes\TEST.pwn(1770) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Warnings.