Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error expected method or property
Icaab2608 Offline
Member

Posts: 85
Threads: 37
Joined: Jul 2013
Reputation: 0
#10
RE: Error expected method or property

(02-01-2015, 03:17 PM)Mudbill Wrote: The general syntax is the only real similarity to C++. Otherwise, stick to Amnesia compatible code.
And this approach?
PHP Code: (Select All)
#include <iostream>
#include <conio.h>
int main()
{
    
using namespace std;
    
char x;
    
getch();
    switch (
getch()) //перед этим было switch(x)
    
{
    case 
72:
        
cout << "Up" << endl;
        break;
    case 
80:
        
cout << "Down" << endl;
        break;
    case 
75:
        
cout << "Left" << endl;
        break;
    case 
77:
        
cout << "Right" << endl;
        break;
    }
    return 
0;

(This post was last modified: 02-01-2015, 10:19 PM by Icaab2608.)
02-01-2015, 10:18 PM
Find


Messages In This Thread
Error expected method or property - by Icaab2608 - 01-31-2015, 08:34 PM
RE: Error expected method or property - by Icaab2608 - 02-01-2015, 10:18 PM



Users browsing this thread: 1 Guest(s)