[php]
if(GetAsyncKeyState(VK_NUMPAD0) && Fly == true)
[/php]
Hi!
I need help....
How do I make something like if....and.....?
Example:
That doesn't work, so I need ur helpCode:if(GetAsyncKeyState(VK_SPACE)<0) and (fly = true)
-Rest in peace leechers-
Your PM box is 100% full.
[php]
if(GetAsyncKeyState(VK_NUMPAD0) && Fly == true)
[/php]
[php]if(GetAsyncKeyState(VK_SPACE) && Fly == true) { [/php]
Doesn't work.... Get some errors:
Code:error C2065: 'Fly' : undeclared identifier warning C4805: '==' : unsafe mix of type ''unknown-type'' and type 'bool' in operation
EDIT: Fixed it, request close.
if(GetAsyncKeyState(VK_SPACE) && (fly = true)) {
Last edited by Zoom; 03-07-2010 at 11:36 AM.
-Rest in peace leechers-
Your PM box is 100% full.
If you've done the basics of C++ you should have instantly known what the problem was, whenever you see that error. I can see you're trying to make a hack there, I suggest starting by the basics if you already havent'.
My bad if you've done them already.
why06 (03-07-2010)
I detect a failure in if(GetAsyncKeyState(VK_SPACE) && (fly = true)) {
why06 (03-07-2010)
good point Retox. This is extremely basic. You need to learn C++, so you will even understand how an if statement works.
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower