The online racing simulator
Some Help Please?
(4 posts, started )
Some Help Please?
I was looking through the forum and i found the LFS Client Library I know a bit about it after a few hours of studdying it, its just im not so sure about this VB Code:

For Each(plr in Players) <--- I don't know how to do a For Each Statement in VB for the Players
InitializeHUD(plr.UniqueID)
Next

My InitHUD Sub is:

Private Sub InitializeHUD(ByVal ID As Byte)
InSim.Send_BTN_CreateButton("TestButton1234", "", Flags.ButtonStyles.ISB_DARK, 15, 30, 0, 90, 0, 0, ID, 0, False)
End Sub

I'm not sure exactly where your question is, but if it's how to do a foreach in VB.NET, then a quick Google reveals..


For Each ply in Players
InitializeHUD(plr.UniqueID)
Next ply

Are you sure thats correct DarkTimes?

Im sure you have to define a data type for ply

For Each Ply As clsPlayer in Players
InitializeHUD(Ply.UniqueID)
Next Ply

Shrug
I Tried that before, I know how to do it in C# It would be:

foreach (clsPlayer Plr in Players)
{
InitalizeHUD(Plr.UniqueID);
}

Its just that it dosen't work the same in VB

Edit::: Ah Mcgas001, I Think that Solved my Problem Smile

Also Mcgas001, Could we speak on MSN Or Somthing of that sort i need help with a few tiny problems.

Some Help Please?
(4 posts, started )
FGED GREDG RDFGDR GSFDG