Jonathan228228 |
Дата: Среда, 27.07.2016, 17:33 | Сообщение # 1
|
Новичок
Сообщений: 8
Статус: Offline
|
Всем привет,проблема такая: прописываю /members а мне пишет что игроков нету!Хотя у меня во фракции 3 человека.Помогите [code] CMD:members(playerid, params[]) { new teamnumber; if (Player[playerid][pLeader] != 0) teamnumber = Player[playerid][pLeader]; else if (Player[playerid][pMember] != 0) teamnumber = Player[playerid][pMember]; else return SendClientMessage(playerid, COLOR_GRAD1, "Âû íè ãäå íå ñîñòîèòå!"); SendClientMessage(playerid, 0x059BD3AA, "×ëåíû îðãàíèçàöèè Online:"); new countmute = 0; foreach(Player,i) { if(Player[i][pAdmin] > 0) continue; if(Player[i][pMember] == teamnumber && IsPlayerConnected(i)) { countmute++; if (Player[i][pLeader] == teamnumber) format(stringer1, sizeof(stringer1), "{ffffff}%s ({00a36d}%d{ffffff}) {00a36d}|{FFFFFF} Ðàíã: {00a36d}Ëèäåð {FFFFFF}", Player[i][pNames], i); else if (Player[i][pMember] == teamnumber) format(stringer1, sizeof(stringer1), "{ffffff}%s ({00a36d}%d{ffffff}) {00a36d}|{FFFFFF} Ðàíã: {00a36d}%s(%d) {FFFFFF}", Player[i][pNames], i, GetPlayerRank(i),Player[i][pRank]); if (strlen(stringer1) > 1) SendClientMessage(playerid, 0xC0E1EEFF, stringer1); } } if(countmute == 0) SendClientMessage(playerid, COLOR_GRAD1, "Íåò èãðîêîâ"); else SendMes(playerid, COLOR_WHITE, "Âñåãî: {00a36d}%d {FFFFFF}÷åëîâåê.", countmute); return true; }Добавлено (27.07.2016, 17:33) --------------------------------------------- Такая же беда с /leaders [/code] CMD:leaders(playerid, params[]) { SendClientMessage(playerid,COLOR_WHITE,".:: Ëèäåðû îíëàéí ::."); new b=0,ttext[32]; foreach(Player,i) { if(Player[i][pAdmin] > 0) continue; if(Player[i][pLeader] > 0) { switch(Player[i][pLeader]) { case 1: ttext = "{2641FE}LSPD"; case 2: ttext = "{313131}ÔÁÐ"; case 3: ttext = "{33AA33}Àðìèÿ: Àâèàíîñåö"; case 4: ttext = "{A52A2A}Ì×Ñ"; case 5: ttext = "{DDA701}LCN"; case 6: ttext = "{FF0000}Yakuza"; case 7: ttext = "{114D71}Ìýðèÿ"; case 8: ttext = "{B313E7}Casino Rich"; case 10: ttext = "{2641FE}SFPD"; case 11: ttext = "{139BEC}Èíñòðóêòîðû"; case 12: ttext = "{8813E7}The Ballas"; case 13: ttext = "{DBD604}The Vagos"; case 14: ttext = "{B4B5B7}Ðóññêàÿ ìàôèÿ"; case 15: ttext = "{009F00}The Grove"; case 16: ttext = "{40848B}San News"; case 17: ttext = "{01FCFF}The Aztecas"; case 18: ttext = "{83BFBF}The Rifa"; case 19: ttext = "{33AA33}Àðìèÿ: Çîíà 51"; case 21: ttext = "{2641FE}LVPD"; case 23: ttext = "{708090}Õèòìàí"; case 24: ttext = "{F45000}Street Rasers"; case 25: ttext = "{2E8B57}SWAT"; case 26: ttext = "{708090}Ïðàâèòåëüñòâî"; case 27: ttext = "{B313E7}Casino Rich"; default: ttext = "{FF0000}Íåèçâåñòíî"; } b++; SendMes(playerid,COLOR_GREY,"%s - %s[%d]",ttext,Player[i][pNames],i); } } if(b>0) SendMes(playerid,COLOR_GREY," ñåòè âñåãî %d ëèäåðîâ.",b); else return SCM(playerid,COLOR_GREY,"Íåòó íè êîãî èç ëèäåðîâ â ñåòè."); return true; }
Сообщение отредактировал Jonathan228228 - Среда, 27.07.2016, 17:20 |
|
|
|
FryGames[CM] |
Дата: Среда, 27.07.2016, 22:40 | Сообщение # 2
|
Боец
Сообщений: 130
Статус: Offline
|
Вы все админы?
|
|
|
|
Jonathan228228 |
Дата: Четверг, 28.07.2016, 00:54 | Сообщение # 3
|
Новичок
Сообщений: 8
Статус: Offline
|
FryGames[CM], Аааа,спасибо!Разобрался )
|
|
|
|