ULX

Author Topic: ULib help  (Read 1858 times)

0 Members and 3 Guests are viewing this topic.

Offline BlueNova

  • Full Member
  • ***
  • Posts: 113
  • Karma: 13
  • The most powerful force in the universe.
ULib help
« on: September 08, 2016, 03:44:12 PM »
So I'm trying to use the ULib function getPlyByID yet it isn't working

I will try and do the following (My own steam ID used)

Code: [Select]
function ULib.getPlyByID( "STEAM_0:0:81970138" )
end

Yet it always ends in the same error

Quote
<name> or '...' expected near '"STEAM_0:0:81970138"'

Some help or pointers in the right direction would be greatly appreciated. Thanks.

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: ULib help
« Reply #1 on: September 08, 2016, 03:47:37 PM »
You're feeding the function a string, and even though it's an actual steam id, it's in a string which the function doesn't recognize. You'd need to find the specific player and use the SteamID() function to pass an ID. Basically, a string isn't an ID, even if it is. (does that make sense?)
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline BlueNova

  • Full Member
  • ***
  • Posts: 113
  • Karma: 13
  • The most powerful force in the universe.
Re: ULib help
« Reply #2 on: September 08, 2016, 03:50:28 PM »
You're feeding the function a string, and even though it's an actual steam id, it's in a string which the function doesn't recognize. You'd need to find the specific player and use the SteamID() function to pass an ID. Basically, a string isn't an ID, even if it is. (does that make sense?)

Yeah, I'll try it that way.

The SteamID() function was a lot more helpful for what I needed. Thanks Viscosity.
« Last Edit: September 08, 2016, 04:07:32 PM by BlueNova »