SA-MP Forums Archive
why it's not showing up? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: why it's not showing up? (/showthread.php?tid=225912)



why it's not showing up? - Medal Of Honor team - 14.02.2011

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;
    }



Re: why it's not showing up? - Ash. - 14.02.2011

Noone is in PlayerData[nameid][gang_rank] (6) then, obviously...


Re: why it's not showing up? - Medal Of Honor team - 14.02.2011

i don't understand you