How to fix this
#7

Quote:
Originally Posted by dEcooR
Посмотреть сообщение
yes or this

Код:
enum LData
{
    Team,
    LGDTeam
};

new TeamInfo[MAX_PLAYERS][LData];
and then everywhere TeamInfo[playerid][LGDTeam]
This script working , but when i type /teaminfo , showing dialog with format : Setteam id , name , to all player ,
example :
[Team 5] Horrible
[Team 1] Horrible2
that dialog showing all player with different /setteam , i just want , showing player with same /setteam ,
i dont know how to create that ~_~

Teaminfo script
pawn Код:
CMD:teaminfo(playerid,params[])
{
    new Count = 0;
    new n[MAX_PLAYER_NAME];
    new string[1000];
    SendClientMessage(playerid, 0x00FF00FF, "__________|Player On Setteam|__________");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i)) continue;
        if(LGDTeam[playerid] < 1) continue;
        GetPlayerName(i,n,sizeof(n));
        format(string,sizeof(string),"%sLevel %d: %s [ID: %d] - %s\n", string, LGDTeam[playerid], n, i, GetPlayerNameExt(i));
        Count++;
    }
    if(Count == 0)
    {
        ShowPlayerDialog(playerid, 2,DIALOG_STYLE_MSGBOX, "Online Players", "No Players Online", "Ok", "");
        return 1;
    }
    ShowPlayerDialog(playerid, 2,DIALOG_STYLE_MSGBOX, "Online Players", string, "Ok", "");
    return 1;
}

stock GetPlayerNameExt(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    return name;
}
Reply


Messages In This Thread
How to fix this - by [IND]Crazy - 04.07.2013, 03:57
Re: How to fix this - by [IND]Crazy - 04.07.2013, 05:02
Re: How to fix this - by dEcooR - 04.07.2013, 06:56
Re: How to fix this - by [IND]Crazy - 04.07.2013, 07:08
Re: How to fix this - by Goldilox - 04.07.2013, 07:37
Re: How to fix this - by dEcooR - 04.07.2013, 08:14
Re: How to fix this - by [IND]Crazy - 04.07.2013, 08:25

Forum Jump:


Users browsing this thread: 1 Guest(s)