The online racing simulator
Searching in All forums
(474 results)
sun
S2 licensed
hi i have a prblem to.

i have a button called 'Speed:'

and i cant get it to show how fast i'am going. Can any one help ? Thanks

and i have the code to but i'am not quite sure if i create the button in the private void MCi packets.

If you can help please post it in here.

Regards

Owen
sun
S2 licensed
Quote from dougie-lampkin :OK, the button is basically the same as a message to LFS. You can send it whenever and wherever you need to. But if you want to delete a button, you need to use its method...which I can't think of off the top of my head...ISP_BFN I think...

Actually i was asking that do i have to put the button inside the Private void MCI packet with the info:

InSim.Send_MST_Message("Speed " + MCI.Info[0].Speed);
sun
S2 licensed
i put the button in side the ncn packet because i thought you where supposed to make the button in there. do they have to be together for it to work ?
sun
S2 licensed
i've uncommented the MCI event
sun
S2 licensed
Hi i have another problem.

i have my MCI packet at the bottom end line. E.G example.

Private void MCI(Packets.IS_MCI MCI)
{

InSim.Send_MST_Message("Speed " + MCI.Info[0].Speed);
}

after that i made a buttin in the Private void NCN packets.

and the button works but it doesnt say my speed.

Regards.

Owen.
sun
S2 licensed
i can help you with the admin bit but dont have a clue about the 1st problem. Right in your setup.cfg it will say Admin pass. delete the bit called 'password' because thats just the default password. Change the 'password' to what ever you like for example:

// optional: password
//pass=heiko1cruise

thtas just an example of what you do in the cfg. Save it then run the dedicated host. when your joining your game type in where it says 'Host password' or what ever type in 'heiki1cruise'

without the ' '. then when you join yhou should have full admin.

Regards.

Owen. -=STG=- Owen
sun
S2 licensed
RacrAsh can you unban me of TC ?
sun
S2 licensed
back to the subject ?
sun
S2 licensed
hehe nova
sun
S2 licensed
thats detailed. Thats the kind of answer i'am looking for. thanks angry angel now i'am going to do some coding
sun
S2 licensed
i have nothing to say, except from saying sorry for calling you little retards. and rob ? do you mind if you share things that you know with me ?
sun
S2 licensed
... he hasnt done that code all for me i've done loads of code but people still dont belive me and they hate me now so i'am going to say bye.
sun
S2 licensed
some am I
sun
S2 licensed
i wonder why these people dont help me like this in my threads.
sun
S2 licensed
like that wud really happen ? i've tried everything i'am gettin a book and reading links and peoople just keep moaning and moaning and moaning and moaning and moaning. Its Getting me angry and not helpfull at all just little retards keep saying thew same thing over and over again and i heard them the first time
Links
sun
S2 licensed
hi does any one know any links to help me with this part of my inSim - Earning Cash ? if you know a link what can help me with earning cash or somthing else please post a reply

DONT POST ANYTHING LIKE 'you need to learn how to code' BECAUSE THATS STUPID AND IAM GETTING A BOOK TO TEACH ME HOW TO CODE IN C#. SO PLEASE DONT SPAMM MY THREAD!
sun
S2 licensed
ok thanks i'll try it later
sun
S2 licensed
ok here it is.

[SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Collections.Generic;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.ComponentModel;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Data;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Drawing;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Text;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Windows.Forms;
[/SIZE][SIZE=2][COLOR=#0000ff]namespace[/COLOR][/SIZE][SIZE=2] WindowsApplication1
{
[/SIZE][SIZE=2][COLOR=#0000ff]public[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]partial[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]class[/COLOR][/SIZE][SIZE=2][COLOR=#008080]Form1[/COLOR][/SIZE][SIZE=2] : [/SIZE][SIZE=2][COLOR=#008080]Form
[/COLOR][/SIZE][SIZE=2]{
[/SIZE][SIZE=2][COLOR=#0000ff]public[/COLOR][/SIZE][SIZE=2] Form1()
{
InitializeComponent();
}
}
}
[/SIZE][SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] TinyTennis_Paint([/SIZE][SIZE=2][COLOR=#0000ff]object[/COLOR][/SIZE][SIZE=2] sender, PaintEventArgs e)
{
[/SIZE][SIZE=2][COLOR=#008000]//Work out how long since we were last here
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]in[/COLOR][/SIZE][SIZE=2] seconds
[/SIZE][SIZE=2][COLOR=#0000ff]double[/COLOR][/SIZE][SIZE=2] gameTime = _timer.ElapsedMilliseconds / 1000.0;
[/SIZE][SIZE=2][COLOR=#0000ff]double[/COLOR][/SIZE][SIZE=2] elapsedTime = gameTime - _lastTime;
_lastTime = gameTime;
_frameCounter++;
[/SIZE][SIZE=2][COLOR=#008000]//Perform any animation
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]//Draw the game objects
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]//Force the next Paint()
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2].Invalidate();
}

sun
S2 licensed
what do you mean ? 'code Tags' ?
sun
S2 licensed
HI

i did some game proggraming and i got the following error:

''Error 1 Expected class, delegate, enum, interface, or struct C:\Documents and Settings\owen\Local Settings\Application Data\Temporary Projects\WindowsApplication1\Form1.cs 20 9 WindowsApplication1".

and it underlines the word 'void'.

here's the code.


[SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Collections.Generic;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.ComponentModel;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Data;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Drawing;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Text;
[/SIZE][SIZE=2][COLOR=#0000ff]using[/COLOR][/SIZE][SIZE=2] System.Windows.Forms;
[/SIZE][SIZE=2][COLOR=#0000ff]namespace[/COLOR][/SIZE][SIZE=2] WindowsApplication1
{
[/SIZE][SIZE=2][COLOR=#0000ff]public[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]partial[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]class[/COLOR][/SIZE][SIZE=2][COLOR=#008080]Form1[/COLOR][/SIZE][SIZE=2] : [/SIZE][SIZE=2][COLOR=#008080]Form
[/COLOR][/SIZE][SIZE=2]{
[/SIZE][SIZE=2][COLOR=#0000ff]public[/COLOR][/SIZE][SIZE=2] Form1()
{
InitializeComponent();
}
}
}
[/SIZE][SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] TinyTennis_Paint([/SIZE][SIZE=2][COLOR=#0000ff]object[/COLOR][/SIZE][SIZE=2] sender, PaintEventArgs e)
{
[/SIZE][SIZE=2][COLOR=#008000]//Work out how long since we were last here
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]in[/COLOR][/SIZE][SIZE=2] seconds
[/SIZE][SIZE=2][COLOR=#0000ff]double[/COLOR][/SIZE][SIZE=2] gameTime = _timer.ElapsedMilliseconds / 1000.0;
[/SIZE][SIZE=2][COLOR=#0000ff]double[/COLOR][/SIZE][SIZE=2] elapsedTime = gameTime - _lastTime;
_lastTime = gameTime;
_frameCounter++;

[/SIZE][SIZE=2][COLOR=#008000]//Perform any animation
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]//Draw the game objects
[/COLOR][/SIZE][SIZE=2][COLOR=#008000]//Force the next Paint()
[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]this[/COLOR][/SIZE][SIZE=2].Invalidate();
}

now i'am reading those links what you sent me and i still cant find out whats wrong.

if you can help please post here.
[/SIZE]
sun
S2 licensed
are you in msn Rob ?
sun
S2 licensed
Hi got the pronlems fixed by me i have my database done i'am so happy! any way i need it to earn the cash and show it so... thats going to be done soon. i'll need help with thtas and + i'am getting a bok so it willl be easyier for me
sun
S2 licensed
now when i try and connect my InSim my insim times out
sun
S2 licensed
k is it sorted ?
sun
S2 licensed
Hey Guys i fixed all my errors! i'am happy with that. only one slight problem. heres the code:


[SIZE=2][COLOR=#0000ff]private[/COLOR][/SIZE][SIZE=2][COLOR=#0000ff]void[/COLOR][/SIZE][SIZE=2] NCN([/SIZE][SIZE=2][COLOR=#2b91af]Packets[/COLOR][/SIZE][SIZE=2].[/SIZE][SIZE=2][COLOR=#2b91af]IS_NCN[/COLOR][/SIZE][SIZE=2] NCN)
{
InSim.Send_BTN_CreateButton([/SIZE][SIZE=2][COLOR=#a31515]"^7Cash:"[/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#2b91af]Flags[/COLOR][/SIZE][SIZE=2].[/SIZE][SIZE=2][COLOR=#2b91af]ButtonStyles[/COLOR][/SIZE][SIZE=2].ISB_DARK, 5, 17, 20, 5, 2, NCN.UCID, 1, [/SIZE][SIZE=2][COLOR=#0000ff]false[/COLOR][/SIZE][SIZE=2]);
AddToConnectionsList(NCN); [/SIZE][SIZE=2][COLOR=#008000]// Adds new player to the Connections[] list (don't remove line!)
[/COLOR][/SIZE][SIZE=2][COLOR=#2b91af]Debug[/COLOR][/SIZE][SIZE=2].WriteLine(NCN.UCID.ToString() + [/SIZE][SIZE=2][COLOR=#a31515]" NCN"[/COLOR][/SIZE][SIZE=2]);
[/SIZE][SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2] ([/SIZE][SIZE=2][COLOR=#2b91af]File[/COLOR][/SIZE][SIZE=2].Exists([/SIZE][SIZE=2][COLOR=#a31515]@"C:\Database\"[/COLOR][/SIZE][SIZE=2] + NCN.UName + [/SIZE][SIZE=2][COLOR=#a31515]".txt"[/COLOR][/SIZE][SIZE=2])!=[/SIZE][SIZE=2][COLOR=#0000ff]true[/COLOR][/SIZE][SIZE=2])
[/SIZE][SIZE=2][COLOR=#2b91af]File[/COLOR][/SIZE][SIZE=2].Create(NCN.UName + [/SIZE][SIZE=2][COLOR=#a31515]".txt"[/COLOR][/SIZE][SIZE=2]);
}

Thats the code, and when i join my server an i look at back my file where its supposed to save - and its not there. hmmm i'am thinking my self, can any one help to ?
[/SIZE]
FGED GREDG RDFGDR GSFDG