if ! [Help] Equali, Print
I want something like when i type the command ( /search ) and if it didn't find anything it will print "Results: Nothing was found". What i did, didn't work. Tried many things didn't work. if(!...... else print ...etc didn't work. Is there a way to do it?
PHP Code:
|
Re: if ! [Help] Equali, Print
PHP Code:
|
Re: if ! [Help] Equali, Print
Won't work.
g_SongInformation[ Name ] = For the names and i think it should be used.. |
Re: if ! [Help] Equali, Print
TL;DR
Just initialize a boolean as false. Set it to true ONLY if you find a match. At the end of the function, if the boolean is still false, no match was found. |
Re: if ! [Help] Equali, Print
I did everything, in any way possible. Didn't work.
Can you explain more please? |
Re: if ! [Help] Equali, Print
This is what fysiks suggested which is a good idea.
Code:
|
Re: if ! [Help] Equali, Print
It works, but i want to understand why what i did didn't work.
Here: PHP Code:
|
Re: if ! [Help] Equali, Print
Come one baws, try to think. You see well you check bSearchFound before being set to true. Do you think once set, it will magically read the function from the start?
|
Re: if ! [Help] Equali, Print
Quote:
Fixed btw. |
Re: if ! [Help] Equali, Print
Quote:
|
| All times are GMT -4. The time now is 06:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.