The online racing simulator
#1 - Lisnu
need coding help at cruise insim stuff
Hello world.

I'm trying to code a new co system for an insim.


also with buttons and buttons and buttons,
for gving police informations to the player that dont know what a chat is.

Else I want it to;
- if butsted there will be a button to officer.
- there will be a line to set fine and to set reason, a button for Fine and one for Release..
- if click to release , chat should say "OfficersName" warned "BadGuysName"
- if click to fine, Open button to the busted BadGuy , this button should say..
"Fine: + Entered fine of Officer/Cadet"
"Reasoon: + Entered Reasoon of Officer/Cadet"


"Acept" Button
- if click to accept the money should get fined of the BadGuy and the Officer should reward this.
and all chase things should be resetted to no chase after fining or releasing.


Also my codes atm are;

### if busted , ButtonToOfficer ###

# Button to set Fine #
InSim.Send_BTN_CreateButton("^2Condition 1 max fine ^1$300", "Type the Fines", Flags.ButtonStyles.ISB_CLICK, 5, 60, 70, 70, 43, 43, Conn.UniqueID, 40, false);

u can click the text , and enter a amout, bt if u click ok the amout dont get saved in this button.


# Button to set Reasoon #
InSim.Send_BTN_CreateButton("^1Type the Reason of Chase", "Type the Reason", Flags.ButtonStyles.ISB_CLICK, 5, 60, 75, 70, 48, 48, Conn.UniqueID, 40, false);

The same Problem , entering is ok but save is Fail



Also I need more the entered words / amounts should be saved in this button.
and if click to fine button..
InSim.Send_BTN_CreateButton("^1Release", Flags.ButtonStyles.ISB_LIGHT | Flags.ButtonStyles.ISB_CLICK, 5, 10, 85, 110, 126, Conn.UniqueID, 40, false);

the BadGuy should get the button and the Fine: should be the entered in of the officer.
reason to and if click to Accept,
should the money get fined and go to officer


*** im failing since 6 days and this what i have atm i got more than much help of a good friend too, becasue i dont know how it works .. ***
Sorry to be rude. I've only read the start and the end of the post. Six days aren't enough to learn even the basics of any programming language. Maybe you can learn how to make windows forms, and make buttons interact with other stuff. But for a system, sophisticated like that (I saw "buttons, buttons, buttons", which pretty much means full gui, I guess), you need years. 1st year to learn. 2nd year to realize that everything you've wrote in the 1st year is crap, and needs to be rewritten, so it can be cleaner and faster. And by adding laziness to it, there goes the 3rd year.

If you don't want to go through all that, just suggest a price, be ready to pay much, and wait to see who will get to the project. Note: Anything under 100 euro is too cheap, and will probably be done from someone, who is still in the 1st year. There are exceptions to that rule of course, but I can not guarantee. Heck, even 200euro is a bit cheap for it. A normal price for a sophisticated and well optimized system like that would be something like 400euro, imo.

And when you add all the things you never mentioned, which will piss off the developer(the most common situation in this business), it can get even higher.




But then again, since you don't seem serious, you can get someone who is still learning to do it for you for free. Then, he will do nothing, you will be running an empty cruise server, and after a month or 2 you will get bored and stop it.



How to start learning exactly insim app developing - get a base from the Libs and Tools section, and start tweaking it. You can get any open source cruise project too.

It's all there.
The whole internet is waiting for you to make your choice. Google will deliver millions of results on the basics of any famous programming language. LFSForum has more than a few open source insim app bases, in many different languages.
k
I have also made that kind of system in my insim, even with my noobish skills of basic programming. i still learning with making/editing the insim.
In the beginning it was hard to make something like that. but with testing and and trying and change some code i know to make things like that.
if some code failed, i go check the code again and look what it does or i go check the internet (has alot of tutorials in C# programming)
So i didnt ask someone for help (only for advanced coding).
So keep trying , i know its boring and it takes alot of time but u will get the basics of the basic of programming.


(sry for my english)
ughh...... Lisnu.

i told you to edit the code before doing anything.. i see why i can't help you cause you just copy and past copy and past, i told you to learn basic's like study other insim's and try. like i did i never know how to make a afk timer button count down but now i made it only problem is i have to make it count when spectated which means i have to set a variable which im gonna learn to do soon.
btw its based on btc or btt.


case 43:
{
Your Code here
}


break;

like that
#6 - PoVo
You forgot to declare the "switch" line? What's it going to case on? The sky?


switch (BTC.ClickID)
{
case 43: //ClickID byte
{
//Your Code here
}
break; //Ends the code of "case 43:"
}


This goes into your BTC packet handler code
Quote from PoVo :You forgot to declare the "switch" line? What's it going to case on? The sky?


switch (BTC.ClickID)
{
case 43: //ClickID byte
{
//Your Code here
}
break; //Ends the code of "case 43:"
}


This goes into your BTC packet handler code

lol thx povo

FGED GREDG RDFGDR GSFDG