Ulysses

General => Developers Corner => Topic started by: BlueNova on September 08, 2016, 03:44:12 PM

Title: ULib help
Post by: BlueNova 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.
Title: Re: ULib help
Post by: iViscosity 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?)
Title: Re: ULib help
Post by: BlueNova 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.