Strlib Warning
#10

Sorry to have kept you waiting.

I tested it and it seems to be working just fine:
PHP код:
stock GetTimeStamp(form[])
{
    new 
form2[16], hourhour2minutesecondHour[5], Minute[5], Second[5], AmPm[5];
    
gettime(hourminutesecond);
    
strcat(form2formsizeof (form2));
    
hour2 = (hour 12) ? (hour 12) : (hour);
    if(
strfind(form"hh"true) != -1format(Hoursizeof(Hour), "%02d"hour2), strreplace(form2"hh"Hourtrue);
    else if(
strfind(form"h"true) != -1format(Hoursizeof(Hour), "%d"hour2), strreplace(form2"h"Hourtrue);
    if(
strfind(form"mm"true) != -1format(Minutesizeof(Minute), "%02d"minute), strreplace(form2"mm"Minutetrue);
    else if(
strfind(form"m"true) != -1format(Minutesizeof(Minute), "%d"minute), strreplace(form2"m"Minutetrue);
    if(
strfind(form"ss"true) != -1format(Secondsizeof(Second), "%02d"second), strreplace(form2"ss"Secondtrue);
    else if(
strfind(form"s"true) != -1format(Secondsizeof(Second), "%d"second), strreplace(form2"s"Secondtrue);
    if(
strfind(form"tt"false) != -1format(AmPmsizeof(AmPm), "%s", (hour >= 12) ? ("PM") : ("AM")), strreplace(form2"tt"AmPmtrue);
    return 
form2;

Reply


Messages In This Thread
Strlib Warning - by bgedition - 12.05.2015, 13:06
Re: Strlib Warning - by Konstantinos - 12.05.2015, 13:11
Re: Strlib Warning - by bgedition - 12.05.2015, 13:14
Re: Strlib Warning - by Konstantinos - 12.05.2015, 13:18
Re: Strlib Warning - by bgedition - 12.05.2015, 13:21
Re: Strlib Warning - by Konstantinos - 12.05.2015, 13:30
Re: Strlib Warning - by bgedition - 12.05.2015, 13:34
Re: Strlib Warning - by Konstantinos - 12.05.2015, 13:38
Re: Strlib Warning - by bgedition - 12.05.2015, 13:52
Re: Strlib Warning - by Konstantinos - 12.05.2015, 14:26

Forum Jump:


Users browsing this thread: 1 Guest(s)