Login Page - Create Account

Support Board


Date/Time: Tue, 14 May 2024 09:19:30 +0000



Post From: Count set to 0 every tick

[2020-06-22 15:51:03]
User907968 - Posts: 802
it is like it is reset to 0 @ eack new tick.

Each time the function is called, your variable 'periodCount' will be uninitialised i.e. have no value set.
Read this to understand when the function is called using automatic looping:
Working with ACSIL Arrays and Understanding Looping

If you want the variable to retain its value between calls to the function, there are the persistent variable functions available:
Persistent Variable Functions