C:\Users\User\Desktop\Premium Roleplay\gamemodes\mysql.pwn(85732) : error 035: argument type mismatch (argument 2)
C:\Users\User\Desktop\Premium Roleplay\gamemodes\mysql.pwn(85732) : error 029: invalid expression, assumed zero
(58732)SendClientMessageToAll(playerid, COLOR_YELLOW, "Administrator %s is now on duty. (/report for assistance.")); GetPlayerNameEx(playerid);
(58732)SendClientMessageToAll(playerid, COLOR_YELLOW, "Administrator %s is now on duty. (/report for assistance.")); GetPlayerNameEx(playerid); |
new string[128];
new AdminName[28];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string), "Administrator %s is now on duty. (/report for assistance.", AdminName);
SendClientMessageToAll(COLOR_YELLOW, string);
CMD:adduty(playerid, params[])
{
new string[256];
new AdminName[28];
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string), "Administrator %s is now on duty. (/report for assistance).", AdminName;
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
else
{
{
SetPlayerColor(playerid, COLOR_BLACK);
SetPlayerHealth(playerid, 99999);
SetPlayerArmour(playerid, 99999);
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now administrator On duty .");
SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
return 1;
}
CMD:adduty(playerid, params[])
{
new string[256], AdminName[28];
if(PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playerid, COLOR_GREY,"You are not authorized to use that command.");
else
{
GetPlayerName(playerid, AdminName, sizeof(AdminName));
format(string, sizeof(string), "Administrator %s is now on duty. (/report for assistance).", AdminName);
SendClientMessageToAll(COLOR_YELLOW, string);
SetPlayerColor(playerid, COLOR_BLACK);
SetPlayerHealth(playerid, 99999);
SetPlayerArmour(playerid, 99999);
SendClientMessage(playerid, COLOR_LIGHTBLUE, "You are now administrator On duty .");
}
return 1;
}