|
Member
|
09-06-2012
, 11:57
Re: Keyvalues
|
#6
|
Quote:
public motd(client, target) {
new String:sPath[PLATFORM_MAX_PATH];
BuildPath(Path_SM, sPath, sizeof(sPath), "configs/test.cfg");
new String:sVal[64];
if(!FileExists(sPath)) {
PrintToChat(client, "Error");
return;
}
new Handle:KV = CreateKeyValues("Test");
FileToKeyValues(KV, sPath);
KvGotoFirstSubKey(KV);
KvGetString(KV, "name", sVal, sizeof(sVal));
PrintToChat(client, "good to go %s", sVal)
CloseHandle(KV);
|
still doesn't work
Last edited by marquezs; 09-06-2012 at 11:57.
|
|
|
|