| Mirage Source http://miragesource.net/forums/ |
|
| timers http://miragesource.net/forums/viewtopic.php?f=210&t=739 |
Page 1 of 1 |
| Author: | Clu [ Wed Nov 15, 2006 10:50 pm ] |
| Post subject: | timers |
i need help with timers, i tried doing it but ive never used em before and i have no idea how the work, how would you make it run code when the tiemr hits zero then reset? |
|
| Author: | Robin [ Wed Nov 15, 2006 11:29 pm ] |
| Post subject: | |
... Why would the timer hit zero? Unless you made that happen with code... which obviously isn't going to happen -.-;; |
|
| Author: | Clu [ Wed Nov 15, 2006 11:35 pm ] |
| Post subject: | |
sorry man >.>, as i said in my post ive never used timers before and i havwe no idea how they work, i found some info on it, so they hit intervals ok, i have mine hitting 30000 milliseconds[30 secs] and then the SP should drop but it just doesnt do anything. my code is this Code: If GetPlayerSp(myindex) = 0 Then
SetPlayerHp(MyIndex, GetPlayerHP(myindex) - 2) Else SetPlayerSp(Myindex, GetplayerSP(myindex) -2) End if |
|
| Author: | pingu [ Fri Nov 17, 2006 12:13 am ] |
| Post subject: | |
Add some code for a message box in there and see if it comes up after 30 seconds. If so, then your problem would be based on not sending the client the new HP and SP. If not, then you forgot to enable the timer... |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|