Please, when you paste code on the forums, indent it appropriately, to a level that is sufficient enough to scan through it well.
Second, please put the code in [CODE] tags, or even better - [PHP] ones, if the language is compatible enough, which, imo, C# is.
Third - Please try to resolve the issue yourself first. Look at the code around, especially when it's that much. Look for similarities between your and the other code. Then, when such found, look for differences in the problematic place. This one, is very obvious. But I'm not going to fix it for you just like that. Put some effort in it! You'll find more details in the code and after it.
Situation 1: Ok, where do you see a variable named NPL being used in the MCI handler? NPL is usually the name of the packet you receive when a player joins the race. You've changed only the text part, expecting the code to be universal. Well, sorry, but it's not. I want you to resolve this yourself, because around 2 or 3 lines above, a message already is being sent, and let me bet - it sends it successfully.
Situation 2: Absolutely the same thing. Right 2 lines above, I see a message, that will be sent successfully.
So, here's the deal. You fix those, and come back showing me how you've done it. If it's correct, I'll help you make your code in that part a lot more readable, and I'll explain what steps I've taken and why.
hi very very noobish quesstion, but ive never coded anything in my life,
what im tryin g to do is customise the insim so it displays my server name etc, i just have no clue as to which file to open and look into
or to which line of code to edit,
Hmm
I Looked On SO4,BL1 And AS5
and i litteraly didnt find any bank or any stores
can someone plz help me out and give me the map of the places or tell me where each location is because me and my friend spent like 30 minutes finding the bank and we didnt find it
Well, first of all, you will need Visual C# Express (2008 will do the job, but I recommend 2010 for any future projects you may be developing). Second, maybe a bit disappointing, but you need to learn the basics of the language. Just how to write a Hello World! app might be enough. As much as to learn how to find your way around the code in C#. Then, when you finally get to this InSim app., I think everything you've asked for is located in Form1's code. It's a basic search&replace.
And of course - after modifying the source, NEVER FORGET to BUILD (press F6) your solution.
If you don't build it, you'll have a changed source, but when you run the .exe you will find the same old stuff. When you have built it, the new .exe will be located in the bin\Release folder.
Have you tried getting it to work with any other version of LFS? There shouldn't be any difference.
Hi
I Love the insim
But is it possible if you can just move the Insim HUD into the middle becuase the insim is good but i want the hud in the top in the middle
can u do that plz?
InSim.Send_MST_Message("/msg ^6|^7 " + Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)].PlayerName + " ^3finish his job for €" + prize);
to
[COLOR=#000000][COLOR=#0000BB]InSim[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]Send_MTC_MessageToConnection[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"message like [/COLOR][/COLOR]job finnished for for €" + prize[COLOR=#000000][COLOR=#DD0000]"[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]Conn[/COLOR][COLOR=#007700].[/COLOR][COLOR=#0000BB]UniqueID[/COLOR][COLOR=#007700], [/COLOR][COLOR=#0000BB]0[/COLOR][COLOR=#007700]);[/COLOR][/COLOR]
I have no idea about this insim whatsoever, but would this work:
InSim[COLOR=#007700].[/COLOR][COLOR=#0000BB]Send_MTC_MessageToConnection[/COLOR][COLOR=#007700]([/COLOR][COLOR=#DD0000]"message like [/COLOR]job finnished for for €" + prize[COLOR=#000000][COLOR=#DD0000]"[/COLOR][COLOR=#007700], [/COLOR][/COLOR]Connections[GetConnIdx(Players[GetPlyIdx(MCI.Info[i].PLID)].UniqueID)][COLOR=#007700], [/COLOR][COLOR=#0000BB]0[/COLOR]);