The first timer isnt working?
#1

Hello,

In my script i have got:

pawn Код:
twosecondtimer = SetTimer("twosecond", 1000, 1); // doesnt work for some reason
    secondtimer = SetTimer("second", 2000, 1); // 2 second timer..
    updatetimer = SetTimer("update", 300000, 1); // 300,000 is 5 mins
    synctimer = SetTimer("sync", 30000, 1); //30, 000 is 30 seconds
But for some reason, the first timer on the list never works... At first the "secondtimer" wasnt working... so i made a new timer "twosecondtimer" and on the function "twosecond" i just put:

pawn Код:
public twosecond(){
     printf("TEST");
     return 1;
}
But it doesnt show up on the log :S So, whatever timer is first on that list, doesnt work..

Anyone know why?
Reply
#2

idk man but why u need timer , and btw just tell me how u do the dialog named " pawn Code: " cuz i know the just
Quote:

this !!!!

Reply
#3

You have to forward it.
Reply
#4

Quote:
Originally Posted by MBX97
Посмотреть сообщение
idk man but why u need timer , and btw just tell me how u do the dialog named " pawn Code: " cuz i know the just
you use [ pawn ] and [ /pawn ]

Quote:
Originally Posted by The_Moddler
Посмотреть сообщение
You have to forward it.
I have forwarded it... No matter what timer goes first on that list, it doesnt work.. ITs very strange
Reply
#5

Hmm maybe there is a wrong return or smthing? Any warnings?
Reply
#6

Nope, no warnings, just that the function isnt getting called at all...
Reply
#7

'twosecondtimer' is a string or array?
Reply
#8

pawn Код:
new twosecondtimer;
Thats what is at the top
Reply
#9

Do you have KillTimer anywhere in your script?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)