13.01.2019, 10:55
Hi all. This is my code:
SetTimer does not work and colors do not change.
pawn Код:
public OnPlayerConnect(playerid)
{
OghabServer = TextDrawCreate(580.0,42.0,"Oghab~n~Server");
TextDrawAlignment(OghabServer, 2);
TextDrawFont(OghabServer, 3);
TextDrawSetOutline(OghabServer, 1);
TextDrawLetterSize(OghabServer, 0.6 ,1.2);
TextDrawShowForPlayer(playerid,OghabServer);
SetTimer("ChangeTDColor",1000,true);
return 1;
}
public ChangeTDColor()
{
TextDrawColor(OghabServer,Colors[random(sizeof(Colors))]);
return 1;
}