10.02.2019, 14:38
I have no idea why, but I am getting some mismatch warnings on these two lines in my code:
Would appreciate the help, thanks!
PHP код:
CMD:admins(playerid, params[])
{
new online, string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
foreach(Player, i)
{
if(PlayerInfo[i][pHelper])
{
online ++;
}
}
format(string, sizeof(string), "|_____Bone County RolePlay Administrator Team_____|");
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
foreach(Player, i)
{
if(!aDuty[i] == 1 && PlayerInfo[i][pAdmin]) //Mismatch Warning 1
{
format(string, sizeof(string), " %s %s status: Roleplaying ", RPALN(i), RPN(i));
SendClientMessage(playerid, COLOR_DARKRED, string);
}
if(!aDuty[i] == 2 && PlayerInfo[i][pAdmin]) //Mismatch Warning 2
{
format(string, sizeof(string), " %s %s status: On duty ", RPALN(i), RPN(i));
SendClientMessage(playerid, COLOR_DARKRED, string);
}
}
return 1;
}