Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pop up menu
#1
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
Reply
#2
I think you mean Dimensions and not Dimentions. If Im not misstaken, that should mean that a variable in MapNpc exceeds the max number.
Reply
#3
well i tried it with a clean ms4
and robin made that part
so ya any suggestions then for the pop up window?
Reply
#4
If Robin made that part it's gotta be Goood.. Nah seriously, if Robin made it, I suggest you ask him.
Reply
#5
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.
Quote:Robin:
Why aren't maps and shit loaded up in a dynamic array?
Jacob:
the 4 people that know how are lazy
Robin:
Who are those 4 people?
Jacob:
um
you, me, and 2 others?
Reply
#6
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
Reply
#7
Search for PlayerSearch in the code. You could probably use that to make your npc window.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)