Quote:
Originally Posted by Bugsy
No, you will continue to use nvault natives to read/save etc. nvault utility has it's own 'open' function which is only used with nvault utility functions, they are not interchangeable.
|
Code:
new iNVaultUtilHandle = nvault_util_open("GagVault");
new iPos, iTimeStamp, szAuthID[34], iEntryCount = nvault_util_count(iNVaultUtilHandle);
for(new i = 0; i < iEntryCount; i++)
{
iPos = nvault_util_read(iNVaultUtilHandle, iPos, szAuthID, charsmax(szAuthID), "", 0, iTimeStamp);
if(get_systime() >= iTimeStamp)
{
client_print(0, print_chat, "TRUE %s", szAuthID);
nvault_remove(g_iNVaultHandle, szAuthID);
new iTarget = find_player("c", szAuthID);
if(iTarget)
{
g_bIsGagged[iTarget] = false;
}
}
}
nvault_util_close(iNVaultUtilHandle);
This is the code I'm using but it ain't working. Could you please point out the error ? Not sure, but I doubt with nvault_util open, I'm unable to remove the entry using nvault_remove()
This function is run every 5 seconds using set_task()
__________________