Jump to content

ID to String..


mistakes

Recommended Posts

Okay.. Here I come with this stupid problem .-. I Don't know how to make this to work with word not with ID .. I Wanna use player Name not player ID ... Please help, i'm new scripter..

  
    local player 
    t = tonumber(t) 
  
    if not t then 
        player = p 
    else 
        player = getPlayerByID(t) 
    end 
     
    if not player then return end 

Link to comment

Thank you @Bonsai. Now the code is:

    local player 
    if not t then 
        player = p 
    else 
        player = getPlayerFromPartialName(t) 
    end 
     
    if not player then return end 

and it's working fine.. I Added also the code from the link u gave me.. :) Thanks for you help.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...