Set Task not working correctly
So I got this script. The point is that they can use the Loto every 10th minute. When they connect they also have to wait 10 minutes before they can use it.
PS: These are just partions of the script. PHP Code:
|
Re: Set Task not working correctly
You never specify an ID to pass in the task. Do like:
PHP Code:
|
Re: Set Task not working correctly
Thats not the problem, just a mistake I made writing it to here :), the problem is in LotoUnUsed, it will not set it to false
|
Re: Set Task not working correctly
This should do what you've asked:
PHP Code:
|
Re: Set Task not working correctly
The spawn thing was just there, because with spawn it worked but with set task it didn't, but as I can understand your code it will work, because it loops it. Your code works :)
|
Re: Set Task not working correctly
Code:
new InvisUsed[33];in plugin_init and you task you didnt registered any IDs. but in the function you registered the ID. this is why your code will not works. i hope you understand what i want to say or understand where are you wrong. |
Re: Set Task not working correctly
There is a better way to do this (without set_task) if there is a command that a person must use to activate this "loto" thing. Is there a command that a player uses to use the "loto"?
|
Re: Set Task not working correctly
I agree with fysiks. You are better off explaining your goal instead of posting your code and expecting everyone to know what you're trying to do.
|
Re: Set Task not working correctly
Its just an set task, so if 10 minutes have pass the player can use loto and if he uses it he has to wait for another 10m to use it again.
|
Re: Set Task not working correctly
Quote:
Quote:
|
| All times are GMT -4. The time now is 07:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.