 |
|
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
|

06-23-2014
, 22:22
Re: Help this code right?
|
#6
|
Quote:
Originally Posted by Toallin
and this would otherwise?
PHP Code:
public ShowHud(taskid)
{
new id = taskid-TASK_HUD
if(!is_user_alive(id)) return;
new iHours[3], iMinutes[3]
get_time("%H", iHours, charsmax(iHours))
get_time("%M", iMinutes, charsmax(iMinutes))
new Hora = str_to_num(iTime)
set_hudmessage(0, 128, 255, 0.01, 0.22, 0, 6.0, 0.9)
ShowSyncHudMsg(id, Hud, "Time: %s:%s %s", iHours, iMinutes, Hora >= 00 && Hora < 12 ? "AM" : "PM")
}
|
What happens when you test it?
__________________
|
|
|
|