messagemode in menu doesn't work
Hello there,
somehow i don't understand why doesn't this work, could someone help me with this? in console i can't see anything from ''public mmXp(id) '' this is what i use in a menu Quote:
this is my messagemode functions Quote:
|
Re: messagemode in menu doesn't work
The two parts of code that you posted don't appear to go together. It does not look like there is any client command registered called "cmdaddxp".
It would be easiest if you attach your entire plugin. If you don't want to do that, create a test plugin with just the functionality that you are struggling with that reproduces the issue. |
Re: messagemode in menu doesn't work
Quote:
EDIT* i changed it from inl to ini because i couldn't attach |
Re: messagemode in menu doesn't work
and btw i mean its an admin menu,while i try to make a selection to add xp with selected value.
i tryed using that too client_cmd(id ,"messagemode mmXp") it doesn't shows anything or gives anything from public mmXp(id) |
Re: messagemode in menu doesn't work
messagemode mmxp cant be called but messagemode mmxpmain will
|
Re: messagemode in menu doesn't work
Quote:
its opens a messagemode when i type in something it doesnt give me xp thats what i try to fix. |
Re: messagemode in menu doesn't work
You'll have to debug it. Is the function actually being called? What is the contents of the szTemp string in mmXp()?
|
Re: messagemode in menu doesn't work
Quote:
i don't know how to explain it, PHP Code:
PHP Code:
|
Re: messagemode in menu doesn't work
This is why I also said that you should create a test plugin to make sure that you understand the logic required to implement the feature you are trying to implement in your plugin. I do this all the time. Create a simple plugin that does just that one feature to make sure that I know that what I'm doing it working in it's simplest form. See here:
Code:
#include <amxmodx> |
Re: messagemode in menu doesn't work
Quote:
*EDIT* thanks i fixed it. |
| All times are GMT -4. The time now is 17:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.