Scripts / Plr in Zone Countdown start HELP

Author
Message
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 3rd Sep 2014 11:20
Hi,

I started to write some scripts for myself. Some work really good, some need some tweaking and so on. But with this script FPSCR simply freeze. There is no error or anything! Can someone help me?

The script is designed to count upwards if the player is in the zone.



Thanks

My dream is to develope games, which makes fun when I create it and fun when other people play it.
PM
smallg
Community Leader
19
Years of Service
User Offline
Joined: 8th Dec 2005
Location:
Posted: 3rd Sep 2014 11:30
yep it will do as you are using a while that doesnt end or have any delay - best not to use whiles really, in this case an if will do fine.

life's one big game

windows vista ultimate

i5 @3.3ghz, 4gb ram, geforce gtx460, directx 11
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 3rd Sep 2014 12:52 Edited at: 3rd Sep 2014 16:18
Thanks. It work now.





My dream is to develope games, which makes fun when I create it and fun when other people play it.
PM
Northern
14
Years of Service
User Offline
Joined: 5th Nov 2010
Location: Brazil
Posted: 3rd Sep 2014 22:27
@Hi all,

It's just a little tip: if you need to use the 'While do' loop (control structure), inside the main loop function, you should use the keyword 'break' before the 'end', closing the 'while loop', for example:

while c
PM
Corno_1
GameGuru Tool Maker
14
Years of Service
User Offline
Joined: 3rd Nov 2010
Location:
Posted: 3rd Sep 2014 23:04
@Northern I start scripting a week ago so I need to find the differences between c/java (where I come from) and lua... But thanks

My dream is to develope games, which makes fun when I create it and fun when other people play
PM

Login to post a reply

Server time is: 2024-12-22 02:26:34
Your offset time is: 2024-12-22 02:26:34