opis problema:radio sam intro po tutu sve je ok sa 2 intra al nemoze nikako da mi prebaci na 3 intro !znaci pokaze mi 1 pa 2 pa onda prebaci opet na 1 i sve tako. Evo pogledajte gdje grijesim ]
Kod:
else
{
TogglePlayerSpectating(playerid, 1);
ForceClassSelection(playerid);
TextDrawShowForPlayer(playerid, Intro1);
TextDrawShowForPlayer(playerid, imesrw);
TextDrawShowForPlayer(playerid, srw);
TextDrawShowForPlayer(playerid, modsrw);
KillTimer(IntroTimer);
IntroTimer = SetTimerEx("Intro", 10000, 0, "d", playerid);
}
PlayerInfo = Peds;
}
return false;
}
public Intro(playerid)
{
KillTimer(IntroTimer);
SetPlayerCameraPos(playerid, 1584.69, -1310.56, 124.02);
SetPlayerCameraLookAt(playerid, 1581.30, -1314.24, 126.07);//s ove 2 funkcije mozete staviti igracu poziciju kamere itd....
TextDrawHideForPlayer(playerid, Intro1);
TextDrawHideForPlayer(playerid, imesrw);
TextDrawHideForPlayer(playerid, pruga);
TextDrawHideForPlayer(playerid, modsrw);
TextDrawShowForPlayer(playerid, kocke);
TextDrawShowForPlayer(playerid, kocke);
TextDrawShowForPlayer(playerid, kocke);
TextDrawShowForPlayer(playerid, kocke);
TextDrawShowForPlayer(playerid, kocke);
TextDrawShowForPlayer(playerid, kocke);
TextDrawShowForPlayer(playerid, kocke);
TextDrawShowForPlayer(playerid, skripter);
TextDrawShowForPlayer(playerid, maper);
TextDrawShowForPlayer(playerid, ucitavanje);
KillTimer(IntroTimer);//ovaj timer se vise nece ponavljat
IntroTimer2 = SetTimerEx("Intro2", 10000, 0, "d", playerid);
}
public Intro2(playerid)
{
TogglePlayerSpectating(playerid, 0);
PlayerPlaySound(playerid, 1063, 0.0, 0.0, 0.0);
KillTimer(IntroTimer);
TextDrawHideForPlayer(playerid, kocke);
TextDrawHideForPlayer(playerid, kocke);
TextDrawHideForPlayer(playerid, kocke);
TextDrawHideForPlayer(playerid, kocke);
TextDrawHideForPlayer(playerid, kocke);
TextDrawHideForPlayer(playerid, kocke);
TextDrawHideForPlayer(playerid, kocke);
TextDrawHideForPlayer(playerid, skripter);
TextDrawHideForPlayer(playerid, maper);
TextDrawHideForPlayer(playerid, ucitavanje);
TextDrawShowForPlayer(playerid, kockice);
TextDrawShowForPlayer(playerid, kockice);
TextDrawShowForPlayer(playerid, kockice);
TextDrawShowForPlayer(playerid, kockice);
KillTimer(IntroTimer);
IntroTimer3 = SetTimerEx("Intro3", 10000, 0, "d", playerid);
}
public Intro3(playerid)
{
TogglePlayerSpectating(playerid, 0);
KillTimer(IntroTimer3);
TextDrawHideForPlayer(playerid, kocke);
TextDrawHideForPlayer(playerid, kocke);
TextDrawHideForPlayer(playerid, kocke);
TextDrawHideForPlayer(playerid, kocke);
}