SA-MP Forums Archive
Error 035: argument type 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: Error 035: argument type mismatch (/showthread.php?tid=434699)



Error 035: argument type mismatch - Red_Dragon. - 03.05.2013

FIXED


Re: Error 035: argument type mismatch - MattyG - 03.05.2013

Show us where you define COL_RED and COL_LGREEN


Re: Error 035: argument type mismatch - Red_Dragon. - 03.05.2013

Here you go
pawn Код:
#define COL_RED            "{F81414}"
and
pawn Код:
#define COL_LGREEN         "{C9FFAB}"
Thanks for the reply.


Re : Error 035: argument type mismatch - yusei - 03.05.2013

::: TrY !!
#define COL_RED 0xF81414AA
#define COL_LGREEN 0xC9FFABAA


Re: Error 035: argument type mismatch - Areax - 03.05.2013

Hello!

Try like this if you want:

On the top of your script:
PHP код:
#define INFINITY          (Float:0x7F800000) 
Commands:
PHP код:
CMD:godoff(playerid, params[])
{
    if(
pInfo[playerid][pAdminLevel] >= 3)
    
SetPlayerHealth(playerid, 100.0);
    
SetPlayerArmour(playerid, 100.0);
    
SendClientMessage(playerid, 0xC9FFABAA, "God mode disabled");
    return 
1;
}
            
CMD:godon(playerid, params[])
{
    if(
pInfo[playerid][pAdminLevel] >= 3)
    
SetPlayerHealth(playerid, INFINITY);
    
SetPlayerArmour(playerid, INFINITY);
    
SendClientMessage(playerid, 0xF81414AA, "God mode enabled");
    return 
1;
}