if statements
#1

Код:
if(Hour < 10 && Minute < 10)return SendClientMessage(playerid, COLOR_WHITE, string3);
I was wondering how would I make this work properly, having two things checked if they are less than 10 than send a client message to the user.
Reply
#2

This should work.
You could also do
pawn Код:
if(( Hour && Minute ) < 10 )
    return SendClientMessage( playerid, COLOR_WHITE, string3 );
Reply
#3

Your original code should work fine if BOTH are less than 10.

@ LarzI:

That shouldn't work. Your Hour && Minute expression will evaluate to true/false before it's compared to 10, even then I wonder if the compiler would chuck you a warning/error.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)