Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is imgui bugging if another condition is in the if (imgui.Entity3D2D(self, Vector(-71, -95, 2), Angle(0, 90, 0), 0.1)) then #32

Closed
Pdzly opened this issue Aug 13, 2021 · 4 comments
Labels
question Further information is requested

Comments

@Pdzly
Copy link

Pdzly commented Aug 13, 2021

If i make it to for example:

if (imgui.Entity3D2D(self, Vector(-71, -95, 2), Angle(0, 90, 0), 0.1), LocalPlayer():IsAdmin()) then

it function if the user started with the permission but if he is for example not anymore admin and become admin again it wont work anymore

Is this a thing from gmod or its a glitch?

@wyozi wyozi added the question Further information is requested label Aug 13, 2021
@wyozi
Copy link
Contributor

wyozi commented Aug 13, 2021

I don't know how that code even works. Anyway, IsAdmin check should be before Entity3D2D call

@Pdzly
Copy link
Author

Pdzly commented Aug 13, 2021

ok i tested it both ways
but still nope

@wyozi
Copy link
Contributor

wyozi commented Aug 13, 2021

Not sure then. Would have to see more code to say for sure

@Pdzly
Copy link
Author

Pdzly commented Aug 13, 2021

yeah of course i will make you an example

@Pdzly Pdzly closed this as completed Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants