09.09.2010, 10:13
Im trying to create my own gang system for my server, which Is going pretty well, just im trying to create a /gangs command which displays all the current gangs, this is what i have:
the GangID is the count that i use for the gangs, like when someone types /creategang it goes up by 1 and it starts at 0.
anyone know how i would get this to display all the gangs?
pawn Код:
stock GetGangs(playerid)
{
new str[78];
SendClientMessage(playerid, ORANGE, "Gangs:");
for (new i = -1; i < GangID; i++)
{
if(GangInfo[i][Name]) continue;
format(str,sizeof(str),"Name: %s(ID:%d) Leader: %s",GangInfo[i][Name],GangID,GangInfo[i][Leader]);
}
SendClientMessage(playerid, ORANGE, str);
}
anyone know how i would get this to display all the gangs?