Raised This Month: $32 Target: $400
 8% 

OnPluginStart FormatTime Starting Help


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TurkeyCoder
Junior Member
Join Date: Mar 2016
Old 04-04-2016 , 14:24   OnPluginStart FormatTime Starting Help
Reply With Quote #1

Code:
public OnPluginStart()
{
	new String:time[512]
	FormatTime(time, sizeof(time), "%H:%M", GetTime());
	if(StrEqual(time[0], "20:14")) {
		EventIs();
	}
}

public EventIs()
{

	Coding

	
}
TurkeyCoder is offline
TurkeyCoder
Junior Member
Join Date: Mar 2016
Old 04-04-2016 , 16:54   Re: OnPluginStart FormatTime Starting Help
Reply With Quote #2

Code:
public OnPluginStart()
{
	CreateTimer(1.0, Event, _, TIMER_REPEAT);
}

public Action:Event(Handle timer) {
	new String:time[512]
	FormatTime(time, sizeof(time), "%H:%M:%S", GetTime());
	if(StrEqual(time[0], "19:00:00")) {
		Coding
	}
}
Ping & Loss Server Help me

Last edited by TurkeyCoder; 04-04-2016 at 19:12.
TurkeyCoder is offline
Phil25
AlliedModders Donor
Join Date: Feb 2015
Old 04-04-2016 , 18:25   Re: OnPluginStart FormatTime Starting Help
Reply With Quote #3

Can you explain what you are trying to do a bit more?
Phil25 is offline
TurkeyCoder
Junior Member
Join Date: Mar 2016
Old 04-04-2016 , 19:12   Re: OnPluginStart FormatTime Starting Help
Reply With Quote #4

the operation of the plug-in when the time comes

Sory bad english
TurkeyCoder is offline
Reply


Thread Tools
Display Modes

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 03:15.


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