Timer problem
#1

Hi all, I have a problema with a timer, when I start mi server on Windows the timer run, but when I upload the script to the Linux server the timer not work, here is the code. Can you help me please?


Quote:

#include <a_samp>
#include <streamer>

new nav, rep;
#define TIEMPO 74000


public OnFilterScriptInit()
{
nav = CreateDynamicRectangle(1439.881713, -1725.621459, 1511.881713, -1613.621459, -1, -1, -1);
return 1;
}

public OnPlayerEnterDynamicArea(playerid, areaid)
{
if(areaid == nav)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/u/63921548/Navidad.mp3");
rep = SetTimer("repetir", TIEMPO, true);
}
return 1;
}

public OnPlayerLeaveDynamicArea(playerid, areaid)
{
if(areaid == nav)
{
StopAudioStreamForPlayer(playerid);
KillTimer(rep);
}
return 1;
}


forward repetir(playerid);
public repetir(playerid)
{
PlayAudioStreamForPlayer(playerid,"https://dl.dropboxusercontent.com/u/63921548/Navidad.mp3");
}

Reply


Messages In This Thread
Timer problem - by rocky2500 - 27.12.2013, 15:30
Re: Tmer problem - by Jefff - 27.12.2013, 15:31
Re: Timer problem - by rocky2500 - 27.12.2013, 15:34
Re: Timer problem - by Jefff - 27.12.2013, 15:52
Re: Timer problem - by rocky2500 - 27.12.2013, 17:07

Forum Jump:


Users browsing this thread: 1 Guest(s)