Post: Binding Problem
11-30-2014, 10:47 AM #1
seanhellen
Are you high?
(adsbygoogle = window.adsbygoogle || []).push({}); Hi all - I am having a bit of a problem. I am using OSM's sprx menu base and am looking to bind NoClip to R3. I have the following;

    void BindNoClip(int client)
{
{
if(Buttons:HappyetectBtn(0, Buttons::R3))
{
*(char*)(0x0110d87f + 0x3980 * client) = 0x01;

if(Buttons:HappyetectBtn(0, Buttons::R3))
{
*(char*)(0x0110d87f + 0x3980 * client) = 0x00;
}
}
}
}


Now, To me that would work...maybe, but thats not the problem, the problem is that I get errors (x4) that say

name followed by "::" must be a class or namespace name and puts a cursor by the 4 Buttons.

which to me means it isnt recognising "Buttons" as a namespace/class - but it is and it is perfectly fine using the exact same thing to open the menu to start with (except its dpad up, not R3) Eek

Anyone any ideas?
(adsbygoogle = window.adsbygoogle || []).push({});
12-04-2014, 12:24 PM #2
Hash847
Purple God
Are you making it in a seperate class? because you'll need to do #include "Buttons.h"; at the top of your class/header.
12-04-2014, 12:50 PM #3
seanhellen
Are you high?
I am at work atm, but from memory...

The only #includes are in the source file, not in the header files. I am 90% sure the header with menu open/close codes (also uses button detection) doesnt have any #includes in it...though will double check later.

The only thing i have done is put the above code in the mods section (with god mode/normal noclip/etc) which has worked with everything else
12-07-2014, 12:59 PM #4
seanhellen
Are you high?
Ok, have had a look and yep the only file with #includes is the prx.cpp file. I have 8 headers (1 of which is buttons) and none of them have the #include.

menu_base is the header with button monitoring in it for menu operations and it works fine...but when I put the same thing into the noclip bind (with same or different button), it doesn't like it :(

I tried putting #include "buttons.h" just to see and it says they have already been defined...which makes sense lol
01-31-2015, 04:37 PM #5
seanhellen
Are you high?
Anyone? Still not playing ball :(

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo