14.02.2011, 16:39
when I type /clanlist it only shows Current Clans: . Not the clans name. BTW this is my code
pawn Код:
if (strcmp(cmd, "/clanlist", true) ==0 )
{
new count=0;
SendClientMessage( playerid, 0xAAAAAA, "Current Clans: " );
new leader;
new nameid = strval(tmp);
for( new i = 0; i < MAX_PLAYERS; i++ )
{
if(PlayerData[nameid][gang_rank] == 6)
{
GetPlayerName(i, "leader", sizeof(leader));
format(stringZ, 256, "Leader: %s [ID %d] Gang %s", leader,i,Gang[count][Name]);
SendClientMessage(playerid, ROT, stringZ);
count++;
}
}
return 1;
}