[pawn]#include <a_samp> forward myTimer(); // under OnGameModeInit/OnFilterScriptInit-callback. SetTimer(\"myTimer\", 100000, true); // repeating every 100 seconds. public myTimer() { new myMsg = random(3); switch(myMsg) { case 0: SendRconCommand(\"[HUN]Trucking And Working\"); case 1: SendRconCommand(\"Web:www.tandw.tk\"); case 2: SendRconCommand(\"Gyere és Fuvarozz!\"); } return true; }[/pawn] mért ir errort? mi a baj pls segitség sürgös lene
SetTimer(\"myTimer\", 100000, true); // repeating every 100 seconds.
Ha GameMode-ban használod, akkor helyezd át ezt a sort az OnGameModeInit függvény alá. Ha FilterScript-ben használod, akkor helyezd át ezt a sort az OnFilterScriptInit függvény alá. voila.
A globális névtérbe hiába rakod a funkciót, szép, hogy nem fog menni! OnGameModeInit() vagy OnFilterScriptInit() alá: [pawn] public OnFilterScriptInit() { SetTimer(\"myTimer\", 100000, true); return 1; }[/pawn] E: Gyorsabb voltál :D