How to point to players who've been stored in a table? menu

Shout-Out

User Tag List

Results 1 to 3 of 3
  1. #1
    bendaferi's Avatar Active Member
    Reputation
    34
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to point to players who've been stored in a table?

    I stored a player into an empty table using table.insert(tablename, player).
    Then I wanted to check if he's already in the table just to avoid duplications.

    tostring(player) shows up exactly as the first value in my table (checked it with printing them both onto the console window) but they are not equal for some reason.

    Tryed it with putting only the players name into the table and check if that exists or not. That worked, but I don't want to work with only player names, I need the userdata to go on (teleport them for example).

    Any idea how to solve this problem?

    thank you,
    bendaferi

    How to point to players who've been stored in a table?
  2. #2
    stoneharry's Avatar Moderator Harry


    Reputation
    1618
    Join Date
    Sep 2007
    Posts
    4,564
    Thanks G/R
    151/150
    Trade Feedback
    0 (0%)
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Userdata just cannot be compared, get the players GUID instead and try comparing that, as you can retrieve the userdata from the GUID.

  3. #3
    bendaferi's Avatar Active Member
    Reputation
    34
    Join Date
    Jun 2008
    Posts
    111
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Got it working. Thank you!

Similar Threads

  1. How to piss off players in AV
    By [M]illo in forum World of Warcraft Exploits
    Replies: 14
    Last Post: 12-28-2007, 06:01 AM
  2. how arena point pushing?
    By brownraza in forum World of Warcraft General
    Replies: 0
    Last Post: 12-06-2007, 01:58 PM
  3. How do you backup player data?
    By Rave_xxl5000 in forum World of Warcraft Emulator Servers
    Replies: 1
    Last Post: 08-31-2007, 06:10 PM
  4. Um how os i know if i have been hacked
    By FMA123 in forum Community Chat
    Replies: 6
    Last Post: 08-17-2007, 09:10 AM
  5. How to find a bot who work...
    By tamipop in forum World of Warcraft General
    Replies: 4
    Last Post: 02-19-2007, 08:14 PM
All times are GMT -5. The time now is 11:50 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search