Попытался оформить ФС, получилось такое
[pwn]#include <a_samp>
#include <Dini> new plcount[5];
new countq;
forward Countt(playerid, time);
public Countt(playerid, time){
new string[255];
if(time>-1){
format(string,255," ~r~ %d",time--);
GameTextForPlayer(playerid,string,1100,3);
SetTimerEx("Countt", 1000, false, "ii", playerid, time);
}
else GameTextForPlayer(playerid,"~w~START",1100,3);
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if( !strfind(cmdtext,"/count",false )){
new idx=7;
new tmp[255], string[255];
tmp = strtok(cmdtext,idx,' ');
if (strlen(tmp)){
countq = strval(tmp);
if(countq < 1 || countq > 10) {SendClientMessage(playerid, 0xFFFFFF00, " Введите время от 1 до 10"); return 1;}
tmp = strtok(cmdtext,idx,' ');
if (strlen(tmp)){
for(new i; (strlen(tmp)&&i<5); i++){
plcount[i]=strval(tmp);
if (IsPlayerConnected(plcount[i])) { SetTimerEx("Countt", 1000, false, "ii", plcount[i], countq);/*Запускаем для него коунт*/ } /*можно считать в одном, но мне кажется, лучше для каждого*/
else { format(string,255, " Ид %d не подключен",plcount[i]); SendClientMessage(playerid, 0xFFFFFF00, string);}
tmp = strtok(cmdtext,idx,' '); // в последний раз выполнится просто так, можно не закрывать условием
}
}
else SendClientMessage(playerid, 0xFFFFFF00, " Введите хотя бы 1 ид игрока");
}
else SendClientMessage(playerid, 0xFFFFFF00, " Введите время");
return 1;
}[/pwn]
выдает ошибку D:\Fugitive RUS\filterscripts\count.pwn(43) : error 030: compound statement not closed at the end of file (started at line 21)