PDA

View Full Version : CMD, not showing up !


FizzyWalshy
07/07/2017, 06:36 AM
i created a cmd:turfs so player can see who owned turfs but when i type /turfs its not showing up
did i do something wrong ?

CMD:turfs(playerid, params[])
{
new string[256], gangcolor, turfstatus[64];
new number = 0;
for(new i; i < MAX_POINTS; i++)
{
if(Points[i][Vulnerable] > 0)
{
format(turfstatus, sizeof(turfstatus), "{33CCFF}%d hours left", Points[i][Vulnerable]);
}
else if(Points[i][Vulnerable] == 0 && Points[i][TakeOverTimerStarted] > 0)
{
format(turfstatus, sizeof(turfstatus), "{FF0606}Under Attack!!!");
}
else if(Points[i][Vulnerable] == 0 && Points[i][TakeOverTimerStarted] == 0)
{
format(turfstatus, sizeof(turfstatus), "{AA3333}Vulnerable");
}
if(Points[i][Type] >= 0)
{
number ++;
//NONE
if(Points[i][Vulnerable] > 0)
{
//GANGS
if(Points[i][OwnerTeam] < 11)
{
gangcolor = HexToInt(FamilyInfo[Points[i][OwnerTeam]-1][FamilyBandana]);
format(string, sizeof(string), "%d. %s | {%h}%s{E0FFFF} | Claimer: %s | Perk: %s | %s", number, Points[i][Name],gangcolor,Points[i][Owner],Points[i][CapperName],Points[i][Perk], turfstatus);
SendClientMessage(playerid, COLOR_OOC, string);
}
//POLICE
else if(Points[i][OwnerTeam] == 11)
{
if(strcmp(Points[i][Name], "East Beach", false) == 0)
{
format(string, sizeof(string), "%d. %s | {8D8DFF}Shutdown by the Police{E0FFFF} | Perk: Combat Shotgun + $500 bonus | %s", number, Points[i][Name], turfstatus);
SendClientMessage(playerid, COLOR_OOC, string);
}
else
{
format(string, sizeof(string), "%d. %s | {8D8DFF}Shutdown by the Police{E0FFFF} | Perk: $500 dollar bonus | %s", number, Points[i][Name],Points[i][Perk], turfstatus);
SendClientMessage(playerid, COLOR_OOC, string);
}
}
else
{
format(string, sizeof(string), "%d. %s | Owner: None | Perk: %s | %s", number, Points[i][Name], turfstatus);
SendClientMessage(playerid, COLOR_OOC, string);
}
}
}
}
return 1;
}