Could someone pleaseeeeeeeeee tell me whats wrong with this?
This is part of my plugin and the whole thing compiles fine with no errors but won't do anything when I use it in my menu in game... the menu part functions perfectly but I can't seem to get this set_user_godmode command to work correctly (and yes I have all the includes).
Please check it over for me? Any advice would be greatly appreciated. Code:
|
DEBUG!
Do many console prints at many different break points with all the values up to that point. |
Re: Could someone pleaseeeeeeeeee tell me whats wrong with t
Quote:
Code:
default: set_user_godmode(player,"1") |
when I put the quotes around the 1 it doesn't compile correctly
|
philman, what kind of crappy advice are you giving out? Don't tell people to do things such as use a string value where an integer is required.
|
Thank you very much for your replies XxAvalanchexX. I'm greatful to have caught someones ear :-). Could you show me an example of how I would use console_print to return values to me? All I found in the documentation was console_print ( id, const message[], ... ) and I don't seem to have much luck setting function parameters :-/ I'm going to see if I can get it to work myself but if you could show me an example of how to do it properly I would be forever indebted to you.
|
Code:
|
Hmm, when I tried that it compiled fine and I like how you got rid of the extra code but it doesn't do anything more than before. Any ideas of what might be going wrong?
|
It isn't supposed to do anything else than before. Check the data in the console that it printed out (with console_print) and see if it matches what it should be.
|
what I meant is that it doesn't print anything to the console on either the server console or my console when I'm doing a dedicated server or to my console when I'm running a listen server.
|
| All times are GMT -4. The time now is 19:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.