Raised This Month: $ Target: $400
 0% 

Set Task not working correctly


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
vL.
Senior Member
Join Date: Aug 2009
Location: Estonia
Old 07-13-2010 , 02:39   Set Task not working correctly
Reply With Quote #1

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:
new InvisUsed[33];

public 
plugin_init()
{
    
register_plugin("Stuff""1.0""vL.");

    
RegisterHam(Ham_Spawn"player""Fwd_Ham_Spawn_Post"1); // <- This works

    
set_task(600.0,"LotoUnUsed",_,_,_,"b"); // <- This doesn't works
}

public 
client_putinserver(id
{
    
set_task(3.0,"LotoUsed",id);
}

public 
LotoUsed(id)
{
    
LotoUsed[id] = true;
}

public 
Fwd_Ham_Spawn_Post(id// <- This works
{
    
LotoUsed[id] = false;
}

public 
LotoUnUsed(id// <- This doesn't works
{
    
LotoUsed[id] = false;

vL. is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode