The online racing simulator
MCI.UCID Problem
(7 posts, started )
#1 - sun
MCI.UCID Problem
hi,

i was working on a safe to pit buttin, when i come accross the MCI doesnt accept MCI.UCID . i think i remember seeing somthing in another thread, about making buttons in MCI, but that was a long time ago, seem i havnt been coding for 2 weeks. 'lol'.

If any one can help like, does MCi support UCID ?

Thanks,
Regards

Owen.
The MCI packet carries the player's UniqueID, if that's what you mean...

MCI.UCID

You can send a button the same way as from any method...it's like sending a message...
#3 - sun

if ((MCI.Info[0].X > -47192919) && (MCI.Info[0].Y < 44547942))
{
InSim.Send_BTN_CreateButton("^2Safe to Pit", Flags.ButtonStyles.ISB_DARK, 5, 15, 5, 90, 5, MCI, 2, false);

Thats what i'am trying to do....
MCI doesnt contain the UCID of the player, It contains the PLID. If you want to be able to get the UCID for the player you need to do the following...


Players[GetPlyIdx(MCI.Info[0].PLID)].UniqueID

Writtin in this forum, might not be 100% correct.
#5 - sun
Yay, thanks Sean, i remember now

Dougie-lampkin: thanks

Sean: You to, thanks
Damn, I was thinking of MSO
#7 - sun
lol.....

MCI.UCID Problem
(7 posts, started )
FGED GREDG RDFGDR GSFDG