Whats wrong with this code ?
PHP Code:
|
Re: Whats wrong with this code ?
test:
PHP Code:
|
Re: Whats wrong with this code ?
Because you use == , use comparing symbols instead : <, >. Values can't be exact.
|
Re: Whats wrong with this code ?
Maybe a switch could help by making it easier to read and edit
Code:
|
Re: Whats wrong with this code ?
actually
case 0 .. 59 : cs_set_user_money(id,2000) :)) |
Re: Whats wrong with this code ?
i dont understand, this native gets time played on current session and he uses it at client putinserver.IT wont give values more then 10 seconds ,will IT?
IT saves played time on disconnect ? |
Re: Whats wrong with this code ?
"user time" is time connected to the server, not the map. If you view the info on a server, you'll probably see people with times greater than the map timelimit.
|
Re: Whats wrong with this code ?
Wait, you mean that i can use this native to show played time of the player without making a plugin that stores played time in nvault?
|
Re: Whats wrong with this code ?
Quote:
So, if you are trying to maintain the total time a player has been on the server, ever, I would not recommend using "user time". A plugin like you describe would be more reliable. |
Re: Whats wrong with this code ?
Yes man, i meant this. If player disconnects then user time resets and this guy is using this native on client_putinserver and it wont give more than 10 seconds because he just connected.
Isn't this true? |
| All times are GMT -4. The time now is 18:35. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.