Well, changed debug (at read file loop), this is what i get:
PHP Code:
log_amx("[TEST] %s", szID)
TrieSetCell(g_tStaff, szID, iStaffType)
log_amx("[TEST] %d", iStaffType)
TrieSetString(g_tChatTags, szID, szChat)
log_amx("[TEST] %s", szChat)
Logs:
Code:
L 06/06/2015 - 17:02:15: [staff.amxx] [TEST] STEAM_0:1:78004107
L 06/06/2015 - 17:02:15: [staff.amxx] [TEST] 4
L 06/06/2015 - 17:02:15: [staff.amxx] [TEST] ADMIN
From console command:
Code:
test
STEAM_0:1:78004107 -1
Edit
users.ini:
Code:
"STEAM_0:1:78004107" "4" "ADMIN"
Well, should i used something else than tries?
And by the way, i tried TrieKeyExists instead of TrieGetCell and not working either..
__________________