27.12.2013, 15:30
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"); } |