help ? doesn't make any sense
#1

So it appears that I am getting an argument type error which doesn't make any sense what so ever. I have looked over this code millions of times and it really doesn't make any sense.

PHP код:
CMD:admincommands(playeridparams[])
{
        if(
PlayerInfo[playerid][pAdmin] == 1)
        {
            
SendClientMessage(playeridCOLOR_RED"======== Moderator Commands ========");
            
SendClientMessage(playeridCOLOR_WHITE"/kick /mute /unmute /kick");
        }
        if(
PlayerInfo[playerid][pAdmin] == 2)
        {
            
SendClientMessage(playeridCOLOR_RED,     "======== Administrator Commands ======== ");
            
SendClientMessage(playeridCOLOR_WHITE,  "/asay, /ban, /giveweapon, /disarm, /spawn, /givemoney, /sethealth, /setarmour ");
            
SendClientMessage(playeridCOLOR_WHITE,  "/refill /healall /goto /get /healall, /armourall ");
        }
        if(
PlayerInfo[playerid][pAdmin] == 3)
        {
            
SendClientMessage(playeridCOLOR_RED,     "======== Management Commands ========");
            
SendClientMessage(playeridCOLOR_WHITE,  "/setlevel /setvip /nukeall /kickall /unbanip /banip");
        }
        return 
1;

ERROR:
PHP код:
I:\pawno\gamemodes\sk4kcnr.pwn(141) : error 035argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(142) : error 035argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(146) : error 035argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(147) : error 035argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(148) : error 035argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(152) : error 035argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(153) : error 035argument type mismatch (argument 2)
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase 
Any ideas?
Reply
#2

hm.. it looks like your color defines are somehow screwed... i guess they should look like
pawn Код:
#define COLOR_RED 0xff000000
#define COLOR_WHITE 0xffffff00
Reply
#3

Thanks, mate. That fixed it. +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)