Sunday, 15 March 2015

unreal development kit - How do I correct a "const mismatch in out variable"? -



unreal development kit - How do I correct a "const mismatch in out variable"? -

so i'm writing code access player's uniquenetid using:

class'gameengine'.static.getonlinesubsystem().uniquenetidtostring( onlinesubsystemsteamworks(class'gameengine'.static.getonlinesubsystem()).loggedinplayerid.uid);

but leads this:

error, phone call 'uniquenetidtostring', parameter 1: const mismatch in out variable

does have thought i'm doing wrong?

it's not const mismatch. function expecting struct , passing in fellow member of struct instead. seek removing .uid, i.e.:

class'gameengine'.static.getonlinesubsystem().uniquenetidtostring( onlinesubsystemsteamworks(class'gameengine'.static.getonlinesubsystem()).loggedinplayerid);

unreal-development-kit unrealscript

No comments:

Post a Comment