if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new count = 0;
SendClientMessage(playerid, COLOR_LIGHTGREEN, "On-Duty Administrators");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && AdminDuty[i] == 1)
{
format(string, 256, "Administrator: %s - [%d]", GetPlayerNameEx(i),PlayerInfo[i][pAdmin]);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;
}
}
}
if(count == 0)
{
SendClientMessage(playerid,COLOR_WHITE,"There are currently no administrators on duty. ");
}
SendClientMessage(playerid, COLOR_LIGHTGREEN, "----------------------------------------------------------");
}
return 1;
}
C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(119 : error 017: undefined symbol "ShowServerPassword" C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1490) : error 004: function "FixHour" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1532) : error 004: function "KickPlayer" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1549) : error 017: undefined symbol "ClearScreen" C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1550) : error 004: function "ShowScriptStats" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1552) : error 017: undefined symbol "RPName" C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1574) : error 004: function "KickPlayer" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1580) : error 004: function "LoadDynamicFactions" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1581) : error 004: function "LoadDynamicCars" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1582) : error 004: function "LoadCivilianSpawn" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1583) : error 004: function "LoadBuildings" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1584) : error 004: function "LoadHouses" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1585) : error 004: function "LoadBusinesses" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1586) : error 004: function "LoadFactionMaterialsStorage" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1587) : error 004: function "LoadFactionDrugsStorage" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(158 : error 004: function "LoadDrivingTestPosition" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1589) : error 004: function "LoadFlyingTestPosition" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1590) : error 004: function "LoadBankPosition" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1591) : error 004: function "LoadWeaponLicensePosition" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1592) : error 004: function "LoadPoliceArrestPosition" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1593) : error 004: function "LoadPoliceDutyPosition" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1594) : error 004: function "LoadGunJob" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1595) : error 004: function "LoadDrugJob" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1596) : error 004: function "LoadDetectiveJob" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(1597) : error 004: function "LoadLawyerJob" is not implemented C:\Users\Zachary.Zach-HP.000\Desktop\Folders\SA-MP\Fort Carson Roleplay\gamemodes\crp.pwn(159 : error 004: function "LoadProductsSellerJob" is not implemented |
Mind showing the command you created? Because I guess these errors have nothing to do with your command.
|
CMD:ask(playerid,params[])
{
new string[150],msg[150],name[24];
GetPlayerName(playerid,name,sizeof(name));
if(sscanf(params,"s[150]",msg)) return SendClientMessage(playerid,-1,"/ask [Question] (150 letters MAX)");
foreach(Player, i)
{
if (PlayerInfo[i][pAdmin] >= 1)
{
format(string,sizeof(string),"[QUESTION] %s has asked %s.",name,msg);
SendClientMessage(playerid,-1,string);
}
}
return 1;
}