Keyvalues
Hello, I'm trying to get the value of a key, and I've tried many ways and it still doesn't work... there's no errors in the compilation, but I can't get the name of key, when I do a print chat it doesn't show anything.
here my config file test.cfg Code:
"Test" Code:
public motd(client, target) { |
Re: Keyvalues
KvGetString(KV, "name", sVa, sizeof(sVa));
You forgot the l, my friend. |
Re: Keyvalues
still doesn't work
|
Re: Keyvalues
/configs/test.cfg
Maybe? I'm not too sure, I'm also having problems with KeyValues. |
Re: Keyvalues
You need to call KvGotoFirstSubKey first.
and don't forget to CloseHandle the KV Handle after you're done ;) |
Re: Keyvalues
Quote:
|
Re: Keyvalues
Code:
"Test" Quote:
KvGotoFirstSubKey with the second argument being set to false will make PHP Code:
PHP Code:
Still, PHP Code:
|
Re: Keyvalues
Well, I tested it and it doesn't, I've been looking at this for hours and can't find a way for this to work
|
All times are GMT -4. The time now is 12:52. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.