![]() |
pop up menu - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: pop up menu (/showthread.php?tid=2113) |
pop up menu - Doomy - 17-09-2008 well im trying to make a menu pop up if you right click an npc however i get the following error Compile Error: Wrong Number of Dimensions with this highlighted If Button = 2 Then x = CurX y = CurY For I = 1 To MAX_MAP_NPCS If MapNpc(Map, I).Num > 0 And MapNpc(Map, I).Num < 50 Then NpcMenu1.Left = CurX - NpcMenu1.Width NpcMenu1.Top = CurY - NpcMenu1.Height End If Re: pop up menu - William - 17-09-2008 I think you mean Dimensions and not Dimentions. If Im not misstaken, that should mean that a variable in MapNpc exceeds the max number. Re: pop up menu - Doomy - 17-09-2008 well i tried it with a clean ms4 and robin made that part so ya any suggestions then for the pop up window? Re: pop up menu - William - 17-09-2008 If Robin made that part it's gotta be Goood.. Nah seriously, if Robin made it, I suggest you ask him. Re: pop up menu - Robin - 17-09-2008 It's called pseudo-code. I was writing out the code off the top of my head, I have no fucking idea what the dimensions are ;D Don't copy & paste anything I say. Take the idea and code it yourself, lazy bastard. Re: pop up menu - Doomy - 17-09-2008 lol i took ur idea because i didnt have an idea really on how to do it i did part of it then it was completely wrong and i thought hey robin is giving me code robin is a good coder imma take this code and try to make it happen but then i failed at that too so now im here asking the community for help on this Re: pop up menu - William - 18-09-2008 Search for PlayerSearch in the code. You could probably use that to make your npc window. |