SendClientMessage mismatch??
#1

Hello!

I just created this,

Код:
case DIALOG_HELP:
        {
            if( response )
            {
            	if(listitem == 0) //Account
            	{
			SendClientMessage(playerid, COL_GREY, "To change your password, use /changepass.");
			SendClientMessage(playerid, COL_GREY, "If you would like to delete your account, please contact an Administrator+ using /requesthelp.");
			SendClientMessage(playerid, COL_GREY, "For more information about your account, feel free to use /requesthelp!");
        	}
            	if(listitem == 1) //General
            	{
                	SendClientMessage(playerid, COL_GREY, "To see all available commands, use /commands.");
                	SendClientMessage(playerid, COL_GREY, "To see all animations, use /anims.");
                	SendClientMessage(playerid, COL_GREY, "Feel free to ask questions in /n and contact an Administrator+ with /requesthelp!");
            	}
		if(listitem == 2) //Information
            	{
                	SendClientMessage(playerid, COL_GREY, "Owner & Co-Owner: Fabian_Blick");
                	SendClientMessage(playerid, COL_GREY, "Scripting & Mapping: Fabian_Blick (CrazyManiac)");
                	SendClientMessage(playerid, COL_GREY, "Feel free to ask questions in /n and contact an Administrator+ with /requesthelp!");
                	SendClientMessage(playerid, COL_RED, "[NOTE]: Forums & Teamspeak coming soon!");
            	}
	   }
	   return 1;
        }
    }
	return 0; 
}
and got these errors!!,

Код:
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(732) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(733) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(734) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(738) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(739) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(740) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(744) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(745) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(746) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Fabian\My Documents\Script\gamemodes\Alpha.pwn(747) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


10 Errors.
Whats the problem??
Reply
#2

how do you define the colors? cause if you do like this:
pawn Код:
#define COL_WHITE "{FFFFFF}"
then its reasonable for errors to appear.
Reply
#3

Код:
#define COL_GREY "{BABABA}"
Reply
#4

And sir, why is it reasonable for the errors to appear??
Reply
#5

because u're defining colors as strings, thats the right way to do it

#define COL_GREY 0xBABABA
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)