View Single Post
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-07-2021 , 16:29   Re: str_to_num question
Reply With Quote #5

If your time will always be in ##:##:## format eg. 05:14:07, you can do

PHP Code:
new szTime[] = "05:14:07";

szTime] = EOS;
szTime] = EOS;

iHour str_to_numszTime );
iMin str_to_numszTime] );
iSec str_to_numszTime] ); 
__________________

Last edited by Bugsy; 05-07-2021 at 16:30.
Bugsy is offline