GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: ZyZu. - 2012. augusztus 14. - 13:54:40

Cím: fishing!!
Írta: ZyZu. - 2012. augusztus 14. - 13:54:40
Sziasztok, készítettem egy szkriptet és ha beírod /fishing akkor horgászol. Na nekem az lenne a gondom nem tudom a timert megállítani mert újra és újra ismételi magát.. na KillTimer nem jó mert errort ír ki.  :Cry2:
Ez a timer amikor inditja.. De ha oda írom KillTimer(hallaszatvege); akkor errort ír rá. Ezt, hogy tudnám megállítani?  :hmmm:
 

SetTimer(\"hallaszatvege\",10000, true);
Cím: fishing!!
Írta: skyLine - 2012. augusztus 14. - 13:58:16
Errort bemásolnád?
Cím: fishing!!
Írta: Mike. - 2012. augusztus 14. - 14:01:59
new fis;
fis = SetTimer(\"hallaszatvege\",10000, true);
 
KillTimer(fis);
Cím: fishing!!
Írta: ZyZu. - 2012. augusztus 14. - 14:03:27
syntax error in the expression, or invalid function call
E: Köszönöm Mike! :D +1
Cím: fishing!!
Írta: RolePlay - 2012. augusztus 14. - 14:04:52

new HalaszTimer[MAX_PLAYERS];
HalaszTimer[playerid] = SetTimerEx( 10000, true, \"d\", playerid);
    return 1;
}
KillTimer(halaszTimer[playerid]);

 
Hülyevagyok hozzá, ha ezen a nyomon elindulsz talán jó :D