why it's not showing up?
#1

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;
    }
Reply
#2

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

i don't understand you
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)