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
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
I think you mean Dimensions and not Dimentions. If Im not misstaken, that should mean that a variable in MapNpc exceeds the max number.
well i tried it with a clean ms4
and robin made that part
so ya any suggestions then for the pop up window?
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
If Robin made that part it's gotta be Goood.. Nah seriously, if Robin made it, I suggest you ask him.
Posts: 2,742
Threads: 115
Joined: Jun 2006
Reputation:
0
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?
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
Posts: 2,605
Threads: 412
Joined: Nov 2021
Reputation:
0
Search for PlayerSearch in the code. You could probably use that to make your npc window.