Talking TextDraw
#10

Quote:
Originally Posted by knackworst
it means that every 10 seconds there will be a new sentence in the conversation ...
Thats not what he was stating, he was stating that the third parameter of SetTimerEx should be a boolean and that the integral value 1 might not be treated as true in that function and it may contort the validity of the function call

I already stated that that value should be false as it represents whether or not the function should be called repeatedly at the timer interval. Sorry to patronize you but as your posts would predicate your not at full understanding of the functions your using in your code. You need to create a condition in your function to designate whether or not to call the function again at that interval.

pawn Код:
if (TimeVal < 19)
     {
          SetTimerEx("SumTimer",10000,false,"i",playerid)
     }
if you don't do this that timer will run for as long as the server is running and you might proliferate your script with too many timers should they not be terminated and you have many players. I'm also not sure how the switch statement will manage values not fitting the cases 0 through 18 for each conversation without a default case.

PS: I don't know why your returning 1 in the jobtalk function and the timer handler, neither is necessary
Reply


Messages In This Thread
Talking TextDraw - by knackworst - 30.09.2011, 20:15
Re: Talking TextDraw - by Zonoya - 30.09.2011, 20:19
Re: Talking TextDraw - by lolumadd_ - 30.09.2011, 20:36
Re: Talking TextDraw - by knackworst - 30.09.2011, 20:56
Re: Talking TextDraw - by Yoshifirebird - 30.09.2011, 22:47
Re: Talking TextDraw - by henry jiggy - 30.09.2011, 23:32
Re: Talking TextDraw - by knackworst - 30.09.2011, 23:34
Re: Talking TextDraw - by henry jiggy - 30.09.2011, 23:42
Re: Talking TextDraw - by knackworst - 30.09.2011, 23:44
Re: Talking TextDraw - by Yoshifirebird - 01.10.2011, 00:06

Forum Jump:


Users browsing this thread: 2 Guest(s)