im new with Coding ... but i know a lot now "Thx Ballin" o.o
i have a problem with the Royal Base Menu By "Fum1n" ...
when i compile it i get error with "Menu_TEXT" "MENU_SELECTION" "MENU_BG"
whats wrong :
Can someone add me in msn or xfire pls :P ?
xfire "hitmanundead"
msn "[email protected]"
#include <windows.h> #include "cMenu.h" #include "gui.h" //****************************** float menu1;//menu sections float DrawEsp; float GetWeaponID; float CrossHairByLix; bool bKeyPressed[256]; bool IsKeyPressed(int iKey) { //used for menu toggle if (GetAsyncKeyState(iKey)) { if (!bKeyPressed[iKey]) { bKeyPressed[iKey] = true; return true; } } else bKeyPressed[iKey] = false; return false; } bool bMenu =false; struct a_menu{char title[1000];float* value;float min;float max;float step;}; int menuIndex = 0;int menuItems = 0; a_menu amenu[150]; cMenu gMenu; //****************************** int cMenu::AddMenuEntry(int n, char title[1000], float* value, float min, float max, float step) { strcpy( amenu[n].title,title); amenu[n].value = value; amenu[n].min = min; amenu[n].max = max; amenu[n].step = step; return (n+1); } //>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> void cMenu::InitializeMenu() { int i = 0; i = AddMenuEntry(i, ">ESP", &menu1, 0, 1, 1); if(menu1==1) { i = AddMenuEntry(i, " Esp",&DrawEsp, 0, 3, 1); i = AddMenuEntry(i, " NoSpread",&GetWeaponID, 0, 1, 1); i = AddMenuEntry(i, " Crosshair",&CrossHairByLix, 0, 1, 1); } menuItems = i; } //****************************** //Graphical //****************************** void cMenu::MenuDrawing() { if (IsKeyPressed(VK_INSERT)) bMenu = !bMenu; gMenu.KeyMenuEvent(); if (!bMenu) return; int i = menuItems; gGui.blackBorder(90,500,146, (16*i)+1); HalFLife2.m_pNeeded->FillRGBA( 90, 480,145,20, Menu_BG); gGui.blackBorder(90,480,146, 20); HalFLife2.m_pNeeded->DrawString( 100,484,120," BP-ESP"); HalFLife2.m_pNeeded->FillRGBA( 90, 500,145,(16*i), Menu_BG); //{ for(int i=0;i<menuItems;i++) if( i!=menuIndex) { HalFLife2.m_pNeeded->DrawString( 100,500 + (16*i),120,amenu[i].title); HalFLife2.m_pNeeded->DrawString( 150,500 + (16*i),lol," %2.2f", amenu[i].value[0] ); } else { HalFLife2.m_pNeeded->FillRGBA( 90, 500+(16*i),145,16, Menu_Selection);//make a black background HalFLife2.m_pNeeded->DrawString( 100,500 + (16*i),lol,amenu[i].title); HalFLife2.m_pNeeded->DrawString( 150,500 + (16*i),lol," %2.2f", amenu[i]. value[0] ); } } //Menu movement bool cMenu::KeyMenuEvent() { if( GetAsyncKeyState(VK_UP) & 1) { if( menuIndex>0 ) menuIndex--; else menuIndex = menuItems - 1; return 0; } else if( GetAsyncKeyState(VK_DOWN) & 1) { if( menuIndex<menuItems-1 ) menuIndex++; else menuIndex = 0; return 0; } else if( GetAsyncKeyState(VK_LEFT) & 1) { if( amenu[menuIndex].value ) { amenu[menuIndex].value[0] -= amenu[menuIndex].step; if( amenu[menuIndex].value[0] < amenu[menuIndex].min ) amenu[menuIndex].value[0] = amenu[menuIndex].max; } return 0; } else if( GetAsyncKeyState(VK_RIGHT) & 1) { if( amenu[menuIndex].value ) { amenu[menuIndex].value[0] += amenu[menuIndex].step; if( amenu[menuIndex].value[0] > amenu[menuIndex].max ) amenu[menuIndex].value[0] = amenu[menuIndex].min; } return 0; } return 1; }
Comment