what is curUser:uptr
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

what is curUser:uptr

Started by chaggydawg, 12 August, 2004, 19:23:50

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

chaggydawg

sorry if this is wrong area for this question, I wasn't sure.

But, does anyone know what user data this is? or what this does or whatever? I got it in PtokaX DC Hub 0.3.3.0 build 15.25 [debug] .

curUser:uptr

Just curious.
thanx  :)

Herodes

I was curious too :) how did you get it ?
I have a slight idea about what userdata might be but 'll save it for some1 who really knows what it is ..

chaggydawg

I found it because I decided to do:

for i,v in curUser do
SendToAll("test", i)
end



 and see what the results were, it was the only thing listed I didn't recognize.


Herodes

I didn't ... I got it from ur first post .. it aroused my curiosity :)

chaggydawg

ahhh.. lol
well if you hear anything or figure something out, please let me know :)

btw, I tried, listing it as a string and running as a function, neither worked, (well if function worked, it did nothing obvious to me)

chaggydawg

#6
maybe this will give a clue?


Syntax error: attempt to call field `uptr' (a userdata value)




maybe its the field userdata (history) is stored.... prolly wrong, but just throwin out idea to catch someones attention hehe

and here is the list I got it from:

[14:59] Kick
[14:59] Disconnect
[14:59] iProfile
[14:59] NickBan
[14:59] Ban
[14:59] sIP
[14:59] TimeBan
[14:59] iVersion
[14:59] TempBan
[14:59] SendPM
[14:59] sName
[14:59] sMyInfoString
[14:59] SendData
[14:59] uptr
[14:59] bOperator


NotRabidWombat

Probably stands for unsigned pointer.

This is a special type of type in C++ that allows the developer to "point" to the address of another variable. This probably points to the user object, socket connection, or some other data on the ptokax side. It may be used by PtokaX API, but as far as lua devs are concerned, it's useless.

The best way to investigate the hidden variables is with type(var).

-NotRabidWombat


I like childish behavior. Maybe this post will be deleted next.

Herodes

thats a remarkable display of insight and a quite possible answer I think .. :)

chaggydawg

thanx  :)

good now I can stop wondering about its usefullness lol  ;)

SMF spam blocked by CleanTalk