save connections with nvault
hello, im trying to make a Connect plugin with "save Connections".
ex: Afro-ankan has connected from sweden [connections: 33] next time i connect to thesame server: Afro-ankan has connected from sweden [connections: 34] need some help plz |
Re: save connections with nvault
PHP Code:
|
Re: save connections with nvault
thank you. it works :)
|
Re: save connections with nvault
When using nvault_get to retrieve a string, you need to pass the string variable along w\ maxlen value. Passing only 3 parameters will make the function think you are trying to retrieve a float byref. In this instance, it would be best to use nvault_get to retrieve an integer (only pass vault handle and key). Also, make sure to close the vault. There is a tutorial in the code snippets\tuts section.
How nvault_get functions based on # params: 2 parameters - function returns integer value 3 parameters - function sets float byref 4 parameters - function sets string byref for maxlen chars Untested PHP Code:
|
Re: save connections with nvault
Using client_authorized() is not better than client_putinserver() for the SteamID ?
|
Re: save connections with nvault
thanks guys
|
Re: save connections with nvault
IIRC, authorized its called prior to putinserver but either way works.
|
Re: save connections with nvault
should look like this ?
PHP Code:
|
Re: save connections with nvault
The plugin I posted is better. Do you need each players connection count elsewhere in the plugin? If not then no need for that global array.
|
Re: save connections with nvault
ok. thanks
|
| All times are GMT -4. The time now is 00:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.