SA-MP Forums Archive
Timer problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Timer problem (/showthread.php?tid=335306)



Timer problem - jcvag44800 - 17.04.2012

Hi guys.

I have a problem with my timer:

Quote:

SetTimerEx("EtapeInscription", 5000, true, "is", 1337, "hello!",playerid);

He is not executed...
I don't know ...

Cordialement


Re: Timer problem - jamesbond007 - 17.04.2012

SetTimerEx("EtapeInscription", 5000, true, "isi", 1337, "hello!",playerid);


Re: Timer problem - WLSF - 17.04.2012

@EDIT, i don't saw your post... /\

Can you show me function "EtapeInscription" ?

about the problem, i think the timer got a error...

pawn Код:
SetTimerEx("EtapeInscription", 5000, true, "isi", 1337, "hello!", playerid);



Re : Timer problem - jcvag44800 - 17.04.2012

Not that.

pawn Код:
public EtapeInscription(playerid)
{
    PlayAudioStreamForPlayer(playerid, "http://sound.fanatik-stunt.fr/Skrillex-Cinema.mp3");
    for(new i = 0; i < 50; i++) SendClientMessage(playerid,COLOR_WHITE," ");
    TextDrawShowForPlayer(playerid,Bande1[playerid]);
    TextDrawShowForPlayer(playerid,Bande2[playerid]);
    TogglePlayerControllable(playerid,0);
    printf("etape=%d",etape[playerid]);
    SetPlayerPos(playerid,2870.6770,-1057.2865,78.2919);
    InterpolateCameraPos(playerid,2885.6770,-1058.2865,78.2919,2848.9089,-2111.8860,50.3404,130000,CAMERA_MOVE);
    InterpolateCameraLookAt(playerid,1615.6670,-1750.8917,84.7949,1615.6670,-1750.8917,84.7949,130000,CAMERA_MOVE);
    if(etape[playerid] == 0)
    {
         etape[playerid]++;
         printf("etape=%d",etape[playerid]);
         SetTimerEx("EtapeInscription", 5000, true, "isi", 1337, "hello!",playerid);
         return 1;
    }
    if(etape[playerid] == 1)
    {
              TextDrawShowForPlayer(playerid,Text:Tutoriel1[playerid]);
              etape[playerid]++;
             // SetTimerEx("EtapeInscription", 5000, false, "is", 1337, "hello!",playerid);
              return 1;
    }
    return 1;
}



Re: Timer problem - TyThaBomb - 17.04.2012

EDIT: Slow post, sorry.


Re: Timer problem - WLSF - 17.04.2012

This function only got 1 parameter, 'playerid'

Try this:
pawn Код:
SetTimerEx("EtapeInscription", 5000, true, "i", playerid);



Re : Re: Timer problem - jcvag44800 - 17.04.2012

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
This function only got 1 parameter, 'playerid'

Try this:
pawn Код:
SetTimerEx("EtapeInscription", 5000, true, "i", playerid);
Thanks

Look your reput


Re: Re : Re: Timer problem - WLSF - 17.04.2012

Quote:
Originally Posted by jcvag44800
Посмотреть сообщение
Thanks

Look your reput
Yah, thanks...