[ Request ] nvault & add / remove a plr
Hello :) ,
My code : Code:
It do not work and i test a lots of things this last weeks but ... So thank you in advance all :D |
Re: [ Request ] nvault & add / remove a plr
What is this !!
szName[ 2 ][ 36 ]; Why they are 2 arrays O_O |
Re: [ Request ] nvault & add / remove a plr
Quote:
Aooka, you never set the VIP bool to true in the CmdAddVip() function. You included nVault which you have open and closed a vault file, but never done anything with it? Also, there is no need to define CMDTARGET_NO_BOTS because it is an already defined constant in amxmisc. And for the understanding of how your defining your variables, it is unnecessary for you to use static in these cases, use new instead. You only need to use static when creating large arrays ( for example an MOTD ) or when your calling the function with an array / string very often. |
Re: [ Request ] nvault & add / remove a plr
Quote:
|
Re: [ Request ] nvault & add / remove a plr
Okay thanks :) I go look a tutoriel about it !
|
Re: [ Request ] nvault & add / remove a plr
@Sherazaa: Take just a look here : http://wiki.amxmodx.org/Pawn_Tutoria...nsional_Arrays :D
@Hornet: So i do that : Code:
It do not work. I've a problem and i know what is it but i don't know how to do. It's for the nVault system. Yes I open & close it and ... nothing :/ I don't know what can i use in this list : http://www.amxmodx.org/funcwiki.php?go=inc&id=41 If it is in this list... Thank you in advance :D |
Re: [ Request ] nvault & add / remove a plr
Quote:
|
Re: [ Request ] nvault & add / remove a plr
1. You added a variable "iMenu" to your command callback. That does not exist. You cannot just add variables to a public function callback and expect it to work.
By that logic, I could do: Code:
2. Make the menu global so it can be accessed. Otherwise the handle is unused. 3. Don't destroy the menu, ever. It is created once and never again, so if you close it once, it is destroyed, and then you cannot access it anymore. |
Re: [ Request ] nvault & add / remove a plr
Quote:
I test tomorrow thanks :D |
Re: [ Request ] nvault & add / remove a plr
Quote:
Quote:
|
| All times are GMT -4. The time now is 06:15. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.