SetTimerEx("EtapeInscription", 5000, true, "is", 1337, "hello!",playerid); |
SetTimerEx("EtapeInscription", 5000, true, "isi", 1337, "hello!", playerid);
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;
}
SetTimerEx("EtapeInscription", 5000, true, "i", playerid);
This function only got 1 parameter, 'playerid'
Try this: pawn Код:
|