2019-12-17, 04:17 PM
Hello Community, i have this odd incomprehension with the YSI Libraries and most-partial of the documentation is missing or not yet implemented (explanation) into github repository i might say.
[Pawn] YSI Logic user-incomprehension and usage
|
2019-12-17, 04:17 PM
Hello Community, i have this odd incomprehension with the YSI Libraries and most-partial of the documentation is missing or not yet implemented (explanation) into github repository i might say.
2019-12-17, 08:58 PM
Tell us more about the parts of YSI you are having issues with?
Remember to always refer to J0sh as `J0sh...`
@ Networks/Servers San Andreas Gaming Network (Owner/Founder) San Andreas Gaming (Owner/Founder) Grand Theft Cop's n Robber's (Owner) Britannia Roleplay (Owner/Founder) [Retired] Alpine RP (Owner/Founder) Aluminium Network (Maintainer) [Disbanded] AlphaDM (Tech Support) [Disbanded] # Services forum.open.mp (Forum Manager) (Formerly Burgershot.gg) open.mp (Member) ~ Languages/Frameworks Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL, Angular, React, Vue, Svelte, Laravel, Rocket
2019-12-18, 07:17 PM
mainly with timers calling them once on few public callbacks and some to initialize when needed example when player the moment the are logged in
2019-12-18, 07:39 PM
(This post was last modified: 2019-12-18, 07:46 PM by JustMichael.)
Okay, so timers come in two forms, one being a regular timer and another being a repeater. A regular timer has a keyword associated with it called `defer` which means to delay a call to a function, now you can defer a function for n times, n being the number of milliseconds you wish to delay.
An example of this would go as follows: Code: main() We than have repeatable timers. These timers run until manually stopped, and they can be stopped by using the `stop` keyword. To create a repeatable timer, you instead use the `repeat` keyword instead of the `defer` keyword. Here is an example: Code: static Timer: repeatable_timer; I hope this is enough to make you understand when to use them and how to use them. Feel free to ask anymore questions :)
Remember to always refer to J0sh as `J0sh...`
@ Networks/Servers San Andreas Gaming Network (Owner/Founder) San Andreas Gaming (Owner/Founder) Grand Theft Cop's n Robber's (Owner) Britannia Roleplay (Owner/Founder) [Retired] Alpine RP (Owner/Founder) Aluminium Network (Maintainer) [Disbanded] AlphaDM (Tech Support) [Disbanded] # Services forum.open.mp (Forum Manager) (Formerly Burgershot.gg) open.mp (Member) ~ Languages/Frameworks Pawn, C, C, C#, Javascript, Typescript, Lua, Python, Go, Rust, PHP, SQL, Angular, React, Vue, Svelte, Laravel, Rocket |