How to create a Timer - Printable Version +- ElitesHost Forums (https://forum.eliteshost.com) +-- Forum: Community (https://forum.eliteshost.com/forumdisplay.php?fid=5) +--- Forum: Information & Guidelines (https://forum.eliteshost.com/forumdisplay.php?fid=16) +---- Forum: Tutorials (https://forum.eliteshost.com/forumdisplay.php?fid=17) +---- Thread: How to create a Timer (/showthread.php?tid=188) |
How to create a Timer - alimaroco - 04-13-2017 Hello everyone, as we know. Is there people who do not know what is a timer and how to create it. In this tutorial i will teach how to: We create the timer Code: Quote:public OnGameModeInit() SetTimer is in where create the timer, "RandomMessage" is the name of the callback. (5000 = Five Seconds) After, we create the forward which will call the callback: Code: Quote:forward RandomMessage(playerid); You can create more timers using more stuff.. THis is just a basic tutorial. I hope it helps you... RE: How to create a Timer - Lance - 04-27-2017 This tutorial is unhelpful and is messed up, this code wouldn't even compile neither work. I wouldn't explain what are the issues as you are the tutor and you should know what mistakes you have done. Thread closed. |