John_Smoke
Новичок
Ув.Пользователь P-I. помогите пожалуйста исправить Error.
Вот команда
C:leaders;
{
SendClientMessage(playerid,COLOR_WHITE,".:: Role Play Leaders Online ::.");
new b=0,ttext[32];
foreach(new i : Player)
{
if(PlayerInfo[bAdmin] > 0) continue;
if(PlayerInfo[pLRInections] > 0)
{
switch(PlayerInfo[pLRInections])
{
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}Правительство";
default: ttext = "{FF0000}Неизвестно";
}
b++;
SendMes(playerid,COLOR_GREY,"%s - %s[%d]",ttext,PlayerInfo[pNames],i);
}
}
if(b>0) SendMes(playerid,COLOR_GREY,"В сети всего %d лидеров.",b);
else return SendMes(playerid,COLOR_GREY,"Нету ни кого из лидеров в сети.");
return true;
}
Вот ошибка:
D:\Mode\Mode\gamemodes\new.pwn(28685) : error 001: expected token: ";", but found "return"
Вот строчки
if(b>0) SendMes(playerid,COLOR_GREY,"В сети всего %d лидеров.",b);
else return SendMes(playerid,COLOR_GREY,"Нету ни кого из лидеров в сети.");
return true;
}
Вот команда
C:leaders;
{
SendClientMessage(playerid,COLOR_WHITE,".:: Role Play Leaders Online ::.");
new b=0,ttext[32];
foreach(new i : Player)
{
if(PlayerInfo[bAdmin] > 0) continue;
if(PlayerInfo[pLRInections] > 0)
{
switch(PlayerInfo[pLRInections])
{
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}Правительство";
default: ttext = "{FF0000}Неизвестно";
}
b++;
SendMes(playerid,COLOR_GREY,"%s - %s[%d]",ttext,PlayerInfo[pNames],i);
}
}
if(b>0) SendMes(playerid,COLOR_GREY,"В сети всего %d лидеров.",b);
else return SendMes(playerid,COLOR_GREY,"Нету ни кого из лидеров в сети.");
return true;
}
Вот ошибка:
D:\Mode\Mode\gamemodes\new.pwn(28685) : error 001: expected token: ";", but found "return"
Вот строчки
if(b>0) SendMes(playerid,COLOR_GREY,"В сети всего %d лидеров.",b);
else return SendMes(playerid,COLOR_GREY,"Нету ни кого из лидеров в сети.");
return true;
}
