Raised This Month: $ Target: $400
 0% 

Weird bug: script works for 1 person only [help plz]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 01-13-2007 , 17:49   Re: Weird bug: script works for 1 person only [help plz]
Reply With Quote #8

no point in making 2 functions...

Code:
public jail_timer(id)
{
	new num, players[32], temp_id
	get_players(players,num,"ac")
	for( new i = 0;  i < num; i++ )
	{
		temp_id = players[i]
		if (preso[temp_id] == 0) continue
		else if (preso[temp_id] == 1)
		{
			if ( timer_seconds[temp_id] < 60) timer_seconds[temp_id] += 1
			else if (timer_seconds[temp_id] >= 60)
			{
				timer_seconds[temp_id] = 0
				timer_minutes[temp_id] += 1
			}
		}
	}
	return PLUGIN_CONTINUE
}
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
 



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 22:27.


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