[Resolved] Code works on random players only?
Hey again everyone, another problem @_@. The code i'm about to post below will only work on some players. It is supposed to work for everyone that touches it.
Code:
Please help me fix this :) |
Re: Code works on random players only?
public timerCount(id)this id is a task id
public timerCount(taskid) so you set_task(1.0, "timerCount", 1, "", 0, "b") only player #1 will take effect |
Re: Code works on random players only?
Now all the ids in my timerCount() don't work, how do I pass the id down there?
|
Re: Code works on random players only?
set_task(1.0, "timerCount", id, "", 0, "b")
|
Re: Code works on random players only?
why not use integar
Code:
|
Re: Code works on random players only?
I didn't know you could put stuff in between the %s %d %f. Thanks that saves tons of time!
Also... about the set_task i'm still a bit confused. You said the 3rd argument is to pass variables, and others tell me its the set the tasks id. |
Re: Code works on random players only?
set_task(1.0,"function",taskid)
then it pass taskid to your function public function(taskid) { } id is just a name. you can name it whatever you like public client_connect(player) { } |
Re: Code works on random players only?
Ok just one more question about the format you made...
Code:
Where it is "%02d" what does that 2 represent? |
Re: Code works on random players only?
1-9 print 01-09
10-99 print 10-99 |
| All times are GMT -4. The time now is 07:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.