SendClientMessage mismatch?? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SendClientMessage mismatch?? (
/showthread.php?tid=444360)
SendClientMessage mismatch?? -
CrazyManiac - 16.06.2013
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??
AW: SendClientMessage mismatch?? -
HurtLocker - 16.06.2013
how do you define the colors? cause if you do like this:
pawn Код:
#define COL_WHITE "{FFFFFF}"
then its reasonable for errors to appear.
Re: SendClientMessage mismatch?? -
CrazyManiac - 16.06.2013
Код:
#define COL_GREY "{BABABA}"
Re: SendClientMessage mismatch?? -
CrazyManiac - 16.06.2013
And sir, why is it reasonable for the errors to appear??
Re: SendClientMessage mismatch?? -
OrMisicL - 16.06.2013
because u're defining colors as strings, thats the right way to do it
#define COL_GREY 0xBABABA