Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
READ THE
RULES
Home
Forum
Help
TinyPortal
Search
Login
Register
The PtokaX Portal
»
Forum
»
PtokaX
»
Support
»
Core.SetUserValue, is it possible?
determinate
determinate
determinate
determinate
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Core.SetUserValue, is it possible? (Read 528 times)
0 Members and 1 Guest are viewing this topic.
Enuri
Newbie
Posts: 9
Karma: +1/-0
Core.SetUserValue, is it possible?
«
on:
December 07, 2009, 05:13:36 pm »
Hello.
Is is possible to add function for modify user data to lua api?
I tried write my own
Core.SetUserValue
function based on
Core.GetUserValue
. I changed
switch(ui8DataId)
, for example, at
case 2:
I use
memcpy
to copy a "test" string to
u->Description
.
Then i call a my function from script, and view a result using
Core.GetUser(nick,true);
But only
sMyInfoString
and
sTag
have changed (
sDescription
haven't changed).
And i believe data changed only in lua table, because hub sends old $MyInfo string to new connecting users.
Help me write a correct function, please
I need only a correct code to modify data in "real" user table, not only lua table. I want to use my SetUserValue in UserConnected to add some description tags.
Regards, Denis.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
The PtokaX Portal
»
Forum
»
PtokaX
»
Support
»
Core.SetUserValue, is it possible?
determinate
determinate
determinate
determinate