13.03.2013, 17:17
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.
ERROR:
Any ideas?
PHP код:
CMD:admincommands(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] == 1)
{
SendClientMessage(playerid, COLOR_RED, "======== Moderator Commands ========");
SendClientMessage(playerid, COLOR_WHITE, "/kick /mute /unmute /kick");
}
if(PlayerInfo[playerid][pAdmin] == 2)
{
SendClientMessage(playerid, COLOR_RED, "======== Administrator Commands ======== ");
SendClientMessage(playerid, COLOR_WHITE, "/asay, /ban, /giveweapon, /disarm, /spawn, /givemoney, /sethealth, /setarmour ");
SendClientMessage(playerid, COLOR_WHITE, "/refill /healall /goto /get /healall, /armourall ");
}
if(PlayerInfo[playerid][pAdmin] == 3)
{
SendClientMessage(playerid, COLOR_RED, "======== Management Commands ========");
SendClientMessage(playerid, COLOR_WHITE, "/setlevel /setvip /nukeall /kickall /unbanip /banip");
}
return 1;
}
PHP код:
I:\pawno\gamemodes\sk4kcnr.pwn(141) : error 035: argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(142) : error 035: argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(146) : error 035: argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(147) : error 035: argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(148) : error 035: argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(152) : error 035: argument type mismatch (argument 2)
I:\pawno\gamemodes\sk4kcnr.pwn(153) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase