Well, I downloaded and installed VS.2010 of C++.
I found this thread; http://forum.ragezone.com/f311/0-000...0000-a-816399/
I don't know why I'm getting this;
--------------------------------------------------------------------------------------------Code:------ Build started: Project: dmod, Configuration: Debug Win32 ------ dmod.cpp c:\users\farron\documents\visual studio 2010\projects\dmod\dmod\dmod.cpp(11): error C2059: syntax error : 'constant' c:\users\farron\documents\visual studio 2010\projects\dmod\dmod\dmod.cpp(12): error C2059: syntax error : 'if' c:\users\farron\documents\visual studio 2010\projects\dmod\dmod\dmod.cpp(13): error C2143: syntax error : missing ';' before '{' c:\users\farron\documents\visual studio 2010\projects\dmod\dmod\dmod.cpp(13): error C2447: '{' : missing function header (old-style formal list?) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I edit some of the coding.
I pretty much don't know what I'm doing here. I am still learning about to do these C++ language.Code:#include "StdAfx.h" #include "targetver.h" #define ZCHARACTER_GETAP 0x00473740 #define ZCHARACTER_GETHP 0x00473730 #define ZCHARACTER 0x00402BA0 #define ZGETGAMECLIENT 0x004ABCC0 #define ZGETGAME 0x004ABDD0 #define ZGAME 0x00672F68 #define GetTargetCharacter 0x00402A30 ZCHARACTER * pCharacter = GetTargetCharacter(); if( pCharacter != NULL ) { int nX = 100; int nY = 50; char szMsg[128] = { 0, }; sprintf(szMsg, "HP : %d / %d", pCharacter->GetHP(), pCharacter->GetMaxHP()); pDC->Text(nX, nY, szMsg); sprintf(szMsg, "AP : %d / %d", pCharacter->GetAP(), pCharacter->GetMaxAP()); pDC->Text(nX, nY + 50, szMsg); }



LinkBack URL
About LinkBacks







Reply With Quote





