Simple error i guess
When i client joins the game a timer should started for the specific player and run the function CreateStatus(id) every ½ second to make sure their xp info is 'up-2-date'.
How do i fix this? Code:
Edit: I've also tried this code: Code:
|
remove_task to stop a task.
|
Ok, thanks...
But how do i make my task start correctly? |
It depends what you're trying to do.
|
I had this problem too.. the problem is that the steamid is not authorized (so you don't know it) yet. So what I did was put all that code on round start like this.
Code:
then this is executed at the beginning of every round Code:
|
I believe client_connect is deprecated, you should be using client_authorized(id) instead.. plus, the users steam id will have been auth'd by then, and you can use it..
I hope that helps.. |
Players on the server are given an Id (1-32)
Thats the id i use to store xp and such things in.... When the client connects to the server, it should start a task that runs CreateStatusText(id) with the users id every ½ second... No matter what i do, it wont work... :( |
Holy christ, don't do that or esle you will be playing for liek 3 weeks as id #3 then i will connect the next day s the third player (id #3) and get all your experience!!!! As for it not working, I dunno try xerobloods method, it's more politically correct, but mine works for me.
|
Quote:
Quote:
|
XP Will not be saved... :)
And its reset every single time a client connects too (for the client only) I guess i will just put it into my Damage event then... |
| All times are GMT -4. The time now is 09:54. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.