You are viewing our Forum Archives. To view or take place in current topics click here.
HudElem Error keeps popping up | +Rep |
Posted:

HudElem Error keeps popping up | +Rep |Posted:

ip
  • Winter 2017
Status: Offline
Joined: Dec 30, 201212Year Member
Posts: 3,778
Reputation Power: 3016
Status: Offline
Joined: Dec 30, 201212Year Member
Posts: 3,778
Reputation Power: 3016
Hey guys. I know I have been posting here a lot for help and all, but I really need it.
I have looked everywhere for the fix and no one can seem to fix it.

This is the issue.

[ Register or Signin to view external links. ]

I have no idea why the equal signs come up as an error. Says that it can't be assigned to an int. Along with the Shader[i], it is assigned but still comes up as an error. What am I doing wrong?
Don't really know where the int is but can you still please help me?

Thanks Guys!
AWL
#2. Posted:
marsupiallizard
  • TTG Senior
Status: Offline
Joined: Dec 16, 201014Year Member
Posts: 1,957
Reputation Power: 98
Status: Offline
Joined: Dec 16, 201014Year Member
Posts: 1,957
Reputation Power: 98
It looks like you are calling it wrong.

Using code from Hud Menu Base By Xx jAmes t xX as an example
Once you define it like:
void setIcon(int ElemAddress, int Width, int Height, float x, float y, int align, int R = 0, int G = 0, int B = 0, int A = 255)
{
*(int *)ElemAddress = 0x04;
*(int *)(ElemAddress + relativeOffset) = 0x05;
*(int *)(ElemAddress + relativeOffset - 4) = 0x06;
*(int *)(ElemAddress + shaderOffset) = GetMaterialIndex("white");
*(int *)(ElemAddress + heightOffset) = Height;
*(int *)(ElemAddress + widthOffset) = Width;
*(int *)(ElemAddress + alignOffset) = align;
*(int *)(ElemAddress + textOffset + 0x4) = 0;
*(float *)(ElemAddress + xOffset) = x;
*(float *)(ElemAddress + yOffset) = y;
*(byte *)(ElemAddress + colorOffset + 3) = A;
*(byte *)(ElemAddress + colorOffset + 2) = B;
*(byte *)(ElemAddress + colorOffset + 1) = G;
*(byte *)(ElemAddress + colorOffset) = R;
}


You can call it by the name of the function. In this case, you would call it like so:
setIcon(Shader[i], 200, 800, 320, 200, 1, 0, 0, 0, 210);
#3. Posted:
xxatawxx111
  • New Member
Status: Offline
Joined: Jun 18, 201311Year Member
Posts: 38
Reputation Power: 2
Status: Offline
Joined: Jun 18, 201311Year Member
Posts: 38
Reputation Power: 2
you did not define it

rofl the codes are released google it
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.