SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 31/03/2016, 03:12 AM   #1
Big Clucker
capron's Avatar
Join Date: Nov 2015
Location: Pernambuco - Brasil
Posts: 116
Reputation: 0
Default Gettime

Oque há de errado neste sistema??

PHP Code:
new horatext[20];
Hora >= 06 || Hora 12){horatext "Bom Dia";}
                else if(
Hora >= 12 || Hora 18){horatext "Boa Tarde";}
                else if(
Hora >= 18 || Hora 00){horatext "Boa Noite";}
                else if(
Hora >= 00 || Hora 06){horatext "Boa Madrugada";}
format(DTNsizeof(DTN), "w~%s!"horatext);
O problema é: O gettime pega a hora em 23:00 ou 11:00 am / pm??

Pois o 12 está batendo com o 00!

Alguem pra solucionar??
Desde já, agradeço!

Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
capron is offline   Reply With Quote

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
GETTIME... I need help with it. Scrillex Scripting Help 2 24/03/2016 08:43 PM
[Ajuda] gettime minimessi10 Português/Portuguese 2 09/12/2015 02:22 PM
gettime() help Lenon Scripting Help 6 03/12/2015 08:53 PM
gettime Karolukas123 Scripting Help 1 17/08/2015 02:23 AM
Gettime Carxi Scripting Help 4 28/03/2014 10:58 AM

All times are GMT. The time now is 03:29 PM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.