Hi guys,
I've been following the steps in readme.txt at the tibiaapi file.
But now i got an problem when i try to run my blank project (i did not changed anything) i get many errors xD with tibia or something i will show maybe some1 can help me
My code:
[code=cpp]#pragma once
namespace RealotsBot {
using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System:ata;
using namespace System:rawing;
using Tibia;
using Tibia.Objects
/// <summary>
/// Summary for Form1
/// </summary>
public ref class Form1 : public System::Windows::Forms::Form
{
public:
Form1(void)
{
InitializeComponent();
//
//TODO: Add the constructor code here
//
}
protected:
/// <summary>
/// Clean up any resources being used.
/// </summary>
~Form1()
{
if (components)
{
delete components;
}
}
private:
/// <summary>
/// Required designer variable.
/// </summary>
System::ComponentModel::Container ^components;
#pragma region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
void InitializeComponent(void)
{
this->SuspendLayout();
//
// Form1
//
this->AutoScaleDimensions = System:rawing::SizeF(6, 13);
this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
this->ClientSize = System:rawing::Size(284, 262);
this->Name = L"Form1";
this->Text = L"Form1";
this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
this->ResumeLayout(false);
}
#pragma endregion
private: System::Void Form1_Load(System::Object^ sender, System::EventArgs^ e) {
}
};
}[/code]
Errors:
Error 1 error C2873: 'Tibia' : symbol cannot be used in a using-declaration c:\users\acerkasper\documents\visual studio 2010\projects\realots\realotsbot\realotsbot\Form1. h 11
Error 2 error C2143: syntax error : missing ';' before '.' c:\users\acerkasper\documents\visual studio 2010\projects\realots\realotsbot\realotsbot\Form1. h 12
Error 3 error C2873: 'Tibia' : symbol cannot be used in a using-declaration c:\users\acerkasper\documents\visual studio 2010\projects\realots\realotsbot\realotsbot\Form1. h 12
Error 4 error C2059: syntax error : '.' c:\users\acerkasper\documents\visual studio 2010\projects\realots\realotsbot\realotsbot\Form1. h 12
Error 5 error C2059: syntax error : 'public' c:\users\acerkasper\documents\visual studio 2010\projects\realots\realotsbot\realotsbot\Form1. h 17
Error 6 error C2143: syntax error : missing ';' before '{' c:\users\acerkasper\documents\visual studio 2010\projects\realots\realotsbot\realotsbot\Form1. h 18
Error 7 error C2447: '{' : missing function header (old-style formal list?) c:\users\acerkasper\documents\visual studio 2010\projects\realots\realotsbot\realotsbot\Form1. h 18
Error 8 error C2061: syntax error : identifier 'Form1' c:\Users\acerkasper\documents\visual studio 2010\Projects\Realots\RealotsBot\RealotsBot\Realot sBot.cpp 16
Also my form is not
Form1.Cs but Form1.H idk if this matters.
And I didn't get step 3 of the readme file ::
3) Then click the file in Solution Explorer, and change the property Copy to Output to "Copy if Newer".::
So i skipped that :P maybe that can be my problem but can som1 help me then to fix it?
A picture of my project.. Because my english sucks.
I hope som1 wants too help me
P.S i'm using Microsoft Visual C++ 2010 express