The online racing simulator
Searching in All forums
(20 results)
Help cant get cant get !job action attacted to button click
shane2k7
S2 licensed
i can get a message to pop up but when i right the command is ther it just writes the command on /msg if anone can help would be great.

soo what im looking for haha i was hoping someone could tell me how to get the command to do that action such as !job would give the player the job attacted to the command how can i get this when click button?

please help thanks


btw im using the LC insim as a base for my project
Last edited by shane2k7, .
shane2k7
S2 licensed
what are the right codes i have the same problem lol
shane2k7
S2 licensed
hi ther is only 1 c.bonus in my code and that done beside !insim off

would is be current distanceSincePit thats up where the actuly button is created
shane2k7
S2 licensed
where do i find the bonus haha
shane2k7
S2 licensed
decimal SpeedMS = (decimal) (((MCI.Info[i].Speed / 32768f) * 100f) / 2);

decimal Speed = (decimal)((MCI.Info[i].Speed * (100f / 32768f)) * 3.6f);
decimal ConvSpeed = (decimal)(Speed * 25 / 1000);

shane2k7
S2 licensed
the code is from lc insim but what do you mean but divide bonus which one is the bonus lol
hi guys i have a percent button and it counts but...
shane2k7
S2 licensed
my percent button could like alot of numbers like where is should be 1% its at like 637% and it doesnt stop at 100 is goes on till the 100's i havnt drove till i get bonus that if i get bonus.

i was getting bonus before though so that should be a problem.

but without me boring you guys/gals anymore i was hoping you would have suggestions on how to make my bonus go up to 1% at right time and and get to 100% as player collect bonus.

thanks for any help you guys/gals may give me.


Shane
Last edited by shane2k7, .
how can i set the positions of on track for a button to pop up
shane2k7
S2 licensed
hi i know where to set the node X,X and Y,Y for the button to pop but how do i fine the X,X and Y,Y positions on track to insert those co-ordinates into my code.

please help

thanks shane
how can i turn progress bar into a percent meter
shane2k7
S2 licensed
yo people im learning myself code and i was wondering if any could tell me how to change like a progress bar for say a health in a cruise insim to count it in % instead anyone know how to change that code?

thanks
shane2k7
S2 licensed
thanks darks that is a very big possbility i might just do that

but still open to code if you got send to me everything i see im learning from
shane2k7
S2 licensed
i know i cant learn C# over night btw lol ive been learning for 3 weeks but i still have very basic knowledge of the language


an brokenh anything tou can send me would be very helpful just want to start with something and learn move peaice and hopefully end up with a finished project in about 6 months :P thanks for reply guys btw
please read im trying to learn the c# language
shane2k7
S2 licensed
hi people i know once "i need a cruise insim" people think he's just trying to make ANOTHER! cruise insim but that not my intension at all.

i have recently got the urge to learn code i have been practising with "gougie lamkins open souce code but i cant seem to add any other programmes to the basics.

so what im hope is that someone has a little free time or a code like the "working lc insim" that i could just look over and learn from.

ill say agian ther is no fear of a cruise insim coming out of this i just want to learn the c# language and alot of people say the best way to learn is working with it.

thanks people for anything you can provide or help me with.

Shane
deleted
shane2k7
S2 licensed
how
Last edited by shane2k7, . Reason : screen
shane2k7
S2 licensed
code


case 203:
Connections[GetConnIdx(BTC.UCID)].BuyingGoods += 10;
InSim.Send_BTN_CreateButton("^2" + Connections[GetConnIdx(BTC.UCID)].BuyingGoods, Flags.ButtonStyles.ISB_C1 | Flags.ButtonStyles.ISB_DARK, 7, 5, 50, 105, 202, BTC.UCID, 40, false);
InSim.Send_BTN_CreateButton("^7Cost: ^1€" + (Connections[GetConnIdx(BTC.UCID)].BuyingGoods * 200), Flags.ButtonStyles.ISB_LEFT | Flags.ButtonStyles.ISB_DARK, 7, 14, 60, 90, 205, BTC.UCID, 40, false);
break;

heres the code
shane2k7
S2 licensed

if (Ply.Payout > 4)
{
Connections[GetConnIdx(Ply.UniqueID)].Cash += 2;
Ply.Payout = 0;
}
}
}

private void CheckUser_Elapsed(object sender, System.Timers.ElapsedEventArgs e)
{
foreach (clsConnection C in Connections)
{
if (Stage == 1)
{
InSim.Send_BTN_CreateButton("^7" + Website, Flags.ButtonStyles.ISB_DARK, 2, 7, 3, 45, 3, C.UniqueID, 2, false);
}
else
{
string Time = Convert.ToString(System.DateTime.Now.TimeOfDay.Hours).PadLeft(2, '0') + ":" + Convert.ToString(System.DateTime.Now.TimeOfDay.Minutes).PadLeft(2, '0');
InSim.Send_BTN_CreateButton("^7" + Time, Flags.ButtonStyles.ISB_DARK, 2, 7, 3, 45, 3, C.UniqueID, 2, false);
}
string TempCars1 = "^1UF1 ^1XFG ^1XRG ^1LX4 ^1LX6 ^1RB4 ^1FXO ^1XRT ^1RAC ^1FZ5";
string TempCars2 = "^1UFR ^1XFR ^1FXR ^1XRR ^1FZR ^1MRT ^1FBM ^1FOX ^1FO8 ^1BF1";
if (C.Cars.Contains("UF1"))
{
TempCars1 = TempCars1.Replace("^1UF1", "^2UF1");
}
if (C.Cars.Contains("XFG"))
{
TempCars1 = TempCars1.Replace("^1XFG", "^2XFG");
}
if (C.Cars.Contains("XRG"))
{
TempCars1 = TempCars1.Replace("^1XRG", "^2XRG");
Last edited by shane2k7, .
shane2k7
S2 licensed
also these number dont show up read in my code other things do but not these numbers
shane2k7
S2 licensed
editing these marks didnt work i dont know why must be something stoping it i need to know to reach my goal of a good cruise insim for everyone to enjoy thanks for the help
does anyone know how i can move a button insim
shane2k7
S2 licensed
hi i was just wondering id it possible to move a button to a diffren location on screen though the code if it possible can youplease let me know.

and can you explain it in simple terms im new to all this coding stuff but willing to learn thanks alot in advance

btw i also have skype name shane2k71 and msn odonnell852@hotmail.co.uk if you prefer this form of contact thanks
Last edited by shane2k7, . Reason : contact
I need a balloon for cruise server
shane2k7
S2 licensed
hi i have a cruise insim downloaded of forums and it is working fine but 1 thing i dont have a km counter + my cars money and such are displayed at top of screen if someone could help me get cash and km in a balloon in the bottom left of my screen that would be great.


sorry for full stops or anything im not good at english. lol

btw thanks in advance for any help anyone can give me
good programme but i need help
shane2k7
S2 licensed
when i load ario up on my server i get a message saying 15-mtc-only for multiplayer host how can i fix this please help
FGED GREDG RDFGDR GSFDG