Ulysses
General => Developers Corner => Topic started 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)
function ULib.getPlyByID( "STEAM_0:0:81970138" )
end
Yet it always ends in the same error
<name> or '...' expected near '"STEAM_0:0:81970138"'
Some help or pointers in the right direction would be greatly appreciated. Thanks.
-
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?)
-
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.