Problem
#1

hi,i have this errors
Код:
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30070) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30072) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30074) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30100) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30102) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30105) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30108) : error 010: invalid function or declaration
. the script is :
Код:
//------------------[CC]--------------------------------------
  if(strcmp(cmd, "/cc", true) == 0)
	{
	  if(IsPlayerConnected(playerid));
		{
			if(PlayerInfo[playerid][pAdmin] >= 3)
			{
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				SendClientMessageToAll(COLOR_GREEN, " ");
				GameTextForAll("Chat cleared!", 1000,1);
				
				return 1;
			}
			else
			{
	 			SendClientMessage(playerid, COLOR_RED, "You do not have permission to use that command!");
				return 1;
			}
		}
		else
		{
		  SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");
		}
	}
Reply
#2

Which lines causes the errors?
Reply
#3

the errors come fromt that /cc command.something isn't good with that command
Reply
#4

pawn Код:
//------------------[CC]--------------------------------------
  if(strcmp(cmd, "/cc", true) == 0)
    {
      if(IsPlayerConnected(playerid)) // Removed the ; here
        {
            if(PlayerInfo[playerid][pAdmin] >= 3)
            {
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                SendClientMessageToAll(COLOR_GREEN, " ");
                GameTextForAll("Chat cleared!", 1000,1);
               
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED, "You do not have permission to use that command!");
                return 1;
            }
        }
        else
        {
          SendClientMessage(playerid, COLOR_RED, "You Must be logged in to use this command!");
        }
    }
Well that's atleast 1 thing I saw.
Reply
#5

Код:
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30070) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30072) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30074) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30100) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30102) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30105) : error 010: invalid function or declaration
D:\Documents and Settings\ady\Desktop\s\gamemodes\WindMania.pwn(30108) : error 010: invalid function or declaration
Reply
#6

Can you copy line 30070?
Reply
#7

Код:
if(strcmp(cmd, "/cc", true) == 0)
Reply
#8

solved
Reply
#9

My guess is that you did not enclose this piece of code with the appropriate callback.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)