GetInfoByName problem.
 

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

GetInfoByName problem.

Started by Shurlock, 04 June, 2004, 23:21:16

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Shurlock

Hi experts!

Need a bit of help here....

From existing scripts I've learned how to retrieve a users nick using the command GetInfoByName(nick)

Next thing I would like to know is how to retrieve the IP in the same way.

I suppose it would be something like GetItemByName(user.sIP) ??

Yes, I know.... try it out and see. Not that simple though, because the hub is running and I have no way of experimenting.

Thanks in advance!
If it's raining and your roof leaks, fix the roof. DON'T try to stop the rain!!

nErBoS

#1
Hi,

Is not GetInfoByName() but GetItemByName(),it will work as the table user.

GetItemByName(nick).sName
GetItemByName(nick).sIP
GetItemByName(nick).iVersion
GetItemByName(nick).sMyInfoString

GetItemByName(nick) will return nil if the nick isn't online.

Best regards, nErBoS
--## nErBoS Spot ##--

Shurlock

What would we starting OP's do without you people??

Thanks nErBoS!
If it's raining and your roof leaks, fix the roof. DON'T try to stop the rain!!

Herodes

QuoteOriginally posted by Shurlock
Yes, I know.... try it out and see. Not that simple though, because the hub is running and I have no way of experimenting.

U can setup another PtokaX ... running in a different port ...
There's your own "TestHub" ! :D

Shurlock

Hi Herodes,

Thanks for the tip. But.... for some reason or other it doesn't seem to work locally (127.0.0.1:412) to get the messages through for me as OP.
All other instructions work, except for anything that has to do with OP's. Strange, but I can live with that 'as is'. As long as I  know for certain that the script instruction is correct.

Once the hub is running the way I wish it to, I will be spending more time on the subject of some instructions not working the way it would normally do 'external'.

Of course I am always willing to learn! Should there also be a probable reason for the above, I would just LOVE to hear it !!!

In any case.... thanks for the reply.
If it's raining and your roof leaks, fix the roof. DON'T try to stop the rain!!

Herodes

Hope you Connected with the correct account ...
Check to see if the nick u use to connect to ur testHub is the same in the PtokaX Under "Ops and Bans" Buttonin the Registered Users frame ...
Check the pass too .. :P
I don't think that from What ip u connect has to do with the Profile at all ...

SMF spam blocked by CleanTalk