Quote:
Originally Posted by Dayrion
Firstly, put your code into balise like :[.php] CODE [/php]
Like WhiteGhost said, you need to use SetTimerEx. Create a function, pur your code into it.
PHP код:
SetTimerEx("example", 10000, false, "i", playerid);
forward example(playerid);
public example(playerid)
{
TextDrawHideForPlayer(playerid,Intro[0]);
TextDrawHideForPlayer(playerid,Intro[1]);
TextDrawHideForPlayer(playerid,Intro[2]);
TextDrawHideForPlayer(playerid,Intro[3]);
TextDrawHideForPlayer(playerid,Intro[4]);
TextDrawHideForPlayer(playerid,Intro[5]);
TextDrawHideForPlayer(playerid,Intro[6]);
TextDrawHideForPlayer(playerid,Intro[7]);
TextDrawHideForPlayer(playerid,Intro[8]);
TextDrawHideForPlayer(playerid,Intro[9]);
TextDrawHideForPlayer(playerid,Intro[10]);
TextDrawHideForPlayer(playerid,Intro[11]);
TextDrawHideForPlayer(playerid,Intro[12]);
TextDrawHideForPlayer(playerid,Intro[13]);
TextDrawHideForPlayer(playerid,Intro[14]);
return 1;
}
|
PHP код:
forward example(playerid);
public example(playerid)
{
for(new i = 0; i < 14; i++)
TextDrawHideForPlayer(playerid,Intro[i]);
return 1;
}