Jump to content
  • 0

Eroare comanda report


Question

Posted

D:\samp\Server Samp hNh14 ; Noname\gamemodes\NVL.pwn(31518) : error 017: undefined symbol "PlayerReported"

D:\samp\Server Samp hNh14 ; Noname\gamemodes\NVL.pwn(31518) : warning 215: expression has no effect

D:\samp\Server Samp hNh14 ; Noname\gamemodes\NVL.pwn(31518) : error 001: expected token: ";", but found "]"

D:\samp\Server Samp hNh14 ; Noname\gamemodes\NVL.pwn(31518) : error 029: invalid expression, assumed zero

D:\samp\Server Samp hNh14 ; Noname\gamemodes\NVL.pwn(31518) : fatal error 107: too many error messages on one line

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

4 Errors.

if(strcmp(cmd, "/report", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
            if(PlayerReported[playerid] == -1) [color=red]- aceastea este problema[/color]
            {
                SendClientMessage(playerid, COLOR_LIGHTRED, " You can only send a report once a minute !");
            }
            else if(PlayerReported[playerid] == 0)
            {
	            GetPlayerName(playerid, sendername, sizeof(sendername));
		    	new length = strlen(cmdtext);
			    while ((idx < length) && (cmdtext[idx] <= ' '))
			    {
				    idx++;
			    }
			    new offset = idx;
			    new result[130];
			    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			    {
				    result[idx - offset] = cmdtext[idx];
				    idx++;
			    }
			    result[idx - offset] = EOS;
			    for(new s = 0; s < num_words; s++)
				{
					new pos;
					while((pos = strfind(result,Swears[s],true)) != -1) for(new i = pos, j = pos + strlen(Swears[s]); i < j; i++)
					{
						result[i] = '*';
					}
				}
			    if(!strlen(result))
			    {
				    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /report [text]");
				    return 1;
			    }
			    format(string, sizeof(string), "[REPORT] from Player %s(ID:%d): %s", sendername, playerid, (result));
			    ABroadCast(0x92C7C7FF,string,1);
			    SendClientMessage(playerid, COLOR_YELLOW,"[REPORT INFO]: Your report has been sent to the Admins.It should be answered shortly !");
			    SetTimerEx("ResetReport", 60000, 0, "d", playerid);
		        PlayerReported[playerid] = -1;
		        CallReport[playerid] = 1;
		        for(new i = 0; i < MAX_PLAYERS; i ++)
			    {
		            if(PlayerInfo[i][pAdmin] >= 1)
		            {
    		            format(string, sizeof(string), "~g~~n~~n~~n~~n~~n~~n~~n~~n~~n~New report from ~y~ %s", sendername);
    		            GameTextForPlayer(i,string,1500,3);
    		            SendClientMessage(i,0x92C7C7FF,"[REPORT]: Use /cr(/callreport) to call this report ");
		            }
		        }
		    }
	    }
	    return 1;
	}

Acestea sunt liniile dinainte si etc

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.