new kecy2=0;
forward kecy();
SetTimer("kecy",1000,1);//timer s opakovanim
public kecy()
{
kecy2++;
new string[256];
format(string,sizeof(string),"Tyhle kecy rikam uz po %d !",kecy2);
SendClientMessage(playerid,barva,string);
return 1;
}
nebo
for(new i=0;i<=2;i++)
{
new string[256];
format(string,sizeof(string),"Prave je tu cislo %d",i);
SendClientMessage(playerid,barva,string);
}
Ale to bude strasne rychli.
Pak jestli chces opakovat zpravu1,2,1,2,1,2 atd.... ta si to udelej pres to goto while nebo jak je to, nebo podminkou pres timer :
new kecy2=0;
forward kecy();
SetTimer("kecy",1000,1);
public kecy()
{
kecy2++;
new string[256];
if(kecy2==2){
kecy2=1;
}
format(string,sizeof(string),"Tyhle kecy rikam uz po %d !",kecy2);
SendClientMessage(playerid,barva,string);
return 1;
}
Snad je to spravne