If the 4th integer is true..
#9

Quote:
Originally Posted by Drak03
View Post
How could i check if its 1 or 0?

if(siren)?
I guess that wouldnt fit in this command?
I don't remember how sscanf handles boolean values so I'd suggest using a regular int to store the siren value.
Checking if(siren) would not pass if the siren is set to 0.

PHP Code:
if (siren != && siren != 1) return error_message
Reply


Messages In This Thread
If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:05
Re: If the 4th integer is true.. - by Jstylezzz - 04.04.2018, 15:07
Re: If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:12
Re: If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:14
Re: If the 4th integer is true.. - by Jstylezzz - 04.04.2018, 15:15
Re: If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:18
Re: If the 4th integer is true.. - by AdamsLT - 04.04.2018, 15:20
Re: If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:21
Re: If the 4th integer is true.. - by AdamsLT - 04.04.2018, 15:27
Re: If the 4th integer is true.. - by Drak03 - 04.04.2018, 15:27

Forum Jump:


Users browsing this thread: 1 Guest(s)