| Mirage Source http://miragesource.net/forums/ |
|
| pop up menu http://miragesource.net/forums/viewtopic.php?f=201&t=4346 |
Page 1 of 1 |
| Author: | Doomy [ Wed Sep 17, 2008 6:57 pm ] |
| Post subject: | pop up menu |
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 |
|
| Author: | William [ Wed Sep 17, 2008 8:37 pm ] |
| Post subject: | Re: pop up menu |
I think you mean Dimensions and not Dimentions. If Im not misstaken, that should mean that a variable in MapNpc exceeds the max number. |
|
| Author: | Doomy [ Wed Sep 17, 2008 9:02 pm ] |
| Post subject: | Re: pop up menu |
well i tried it with a clean ms4 and robin made that part so ya any suggestions then for the pop up window? |
|
| Author: | William [ Wed Sep 17, 2008 9:05 pm ] |
| Post subject: | Re: pop up menu |
If Robin made that part it's gotta be Goood.. Nah seriously, if Robin made it, I suggest you ask him. |
|
| Author: | Robin [ Wed Sep 17, 2008 9:34 pm ] |
| Post subject: | Re: pop up menu |
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. |
|
| Author: | Doomy [ Wed Sep 17, 2008 10:38 pm ] |
| Post subject: | Re: pop up menu |
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 |
|
| Author: | William [ Thu Sep 18, 2008 7:57 am ] |
| Post subject: | Re: pop up menu |
Search for PlayerSearch in the code. You could probably use that to make your npc window. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|