The online racing simulator
Searching in All forums
(215 results)
ReVoX
S2 licensed
yes, i saw, but in the other he asked also for the code
ReVoX
S2 licensed

[SIZE=2][COLOR=#0000ff]if[/COLOR][/SIZE][SIZE=2] ((MCI.Info[0].X >= 46176313) && (MCI.Info[0].Y >= 15915129)) ///this code verified the coordinates, good=send message : bad=no send
{
InSim.Send_MST_Message([/SIZE][SIZE=2][COLOR=#a31515]"/msg test^3X "[/COLOR][/SIZE][SIZE=2] + MCI.Info[0].X); ///this code send "test^3 -4228125845" ///the number is the coordinate X.
InSim.Send_MST_Message([/SIZE][SIZE=2][COLOR=#a31515]"/msg test2^4Y "[/COLOR][/SIZE][SIZE=2] + MCI.Info[0].Y);[/SIZE][SIZE=2] ///"test^4 -4228125845" ///the number is the coordinate Y.[/SIZE]
[SIZE=2] }
[/SIZE]

you need delete one line of the second part {} and delete + MCI.Info[0].X/Y
ReVoX
S2 licensed

InSim.Send_MST_Message("/msg ^3X " + MCI.Info[0].X);
InSim.Send_MST_Message("/msg ^4Y " + MCI.Info[0].Y);

this is for see position what you need, the other code is for daily ticket.

The problem is flood, i dont know how to stop the flood.
ReVoX
S2 licensed
your code, but the problem is create flood, change the values 442 for yours coordinates.


if ((MCI.Info[0].X >= 442) && (MCI.Info[0].Y >= 442))
{
InSim.Send_MST_Message("/msg ^7You have found your daily lottery ticket!");
}


for see coordinates, this code send your position for position the ticket.


{
InSim.Send_MST_Message("/msg ^3X " + MCI.Info[0].X);
InSim.Send_MST_Message("/msg ^4Y " + MCI.Info[0].Y);
}

ReVoX
S2 licensed
irzunh: you need S2/S1 for run good with cruise mode, this addon use the lfsussername, but in demo no avalible.
ReVoX
S2 licensed
yes, big help for begginers, this is the base, with that is more easy start cruise server.
ReVoX
S2 licensed
Jakg: you have reason, i try make, but i read and search, asked the minumum posible.
The people asked for own others people with the helps, asked codes codes codes.
ReVoX
S2 licensed
the problem is in that

case "!pay":
if (StrMsg.Length > 0)
{
if (StrMsg[1].Contains("-"))
InSim.Send_MTC_MessageToConnection("^7Invalid command", MSO.UCID, 0);
else
{
int Pay = int.Parse(StrMsg[1]);
Connections[GetConnIdx(MSO.UCID)].Cash -= Pay;
InSim.Send_MST_Message("/msg " + Connections[GetConnIdx(MSO.UCID)].PlayerName + "^7 paid $" + Pay + " fine");
}
}
break;

no send the money for the player selected, but i don't know the fix.
ReVoX
S2 licensed
blas: digo que es cuestion de intentar leer y probar.
ReVoX
S2 licensed
@shaun i am new in C#, is question of try read test trye read...
ReVoX
S2 licensed
@ Krammeh: shaun isn't noob, he help in this theard with updates, example earner more cash with speed.
ReVoX
S2 licensed
dont know, the command is bugged
ReVoX
S2 licensed
@ shaun463: thanks, good updates, go to see that.

Edit: i dont see correct:
Last edited by ReVoX, .
ReVoX
S2 licensed
is more easy download C# and try you, is very very very easy change, and for problems you can fix the ip, port, adminpass..
ReVoX
S2 licensed
You only need change the numbers for the last post, is the solution for convert mph, but i wait for guru's programming for say correct or wrong.
ReVoX
S2 licensed
@sun yes, basic mathematics:


0.44704=

44704
-------
100000

= (44704 / 100000)

i dont know is true or wrong, buy is my calculation, some people confirmed?
Last edited by ReVoX, .
ReVoX
S2 licensed
@ sun What code?, i only test how how to add driving distance in a button with decimals numbers.
ReVoX
S2 licensed
@ MUFFMAN001: For connect InSim modified this:


cfg = new ConnectionSettings("127.0.0.1", 29999, 0, Flags.InSimFlags.ISF_MCI, '!', 1000, "passwordforconnect", "^3Cruise Test");

you need mofidied that: "passwordforconnect"
Last edited by ReVoX, .
ReVoX
S2 licensed
I create one button for show the driving distance, and my problem is how to add decimals numbers in that, example driving distance: 15.8km
my error is Visual Basic studio say problem with decimal, but for decimals i need double
you understand me? or show screenshot.
ReVoX
S2 licensed
i am searching the solution for the km button, but i have problem with double, go to try more

@ J@tko: haha your signature xDD.
ReVoX
S2 licensed
@ Sun: Speed * 0 =0
Infinite* 0 =0

Test with other number xD
ReVoX
S2 licensed
I create the button for Km, but i need decimal number in that, how to can add?

@ dougie-lampkin: thanks for the code, but i dont got use in this, this night go to try more
ReVoX
S2 licensed
sun, learn basic programming, the pricers is in the dealers.cs, i modified in that.
ReVoX
S2 licensed
dicen que lo subas a otro sitio, ejemplo filefront, rapidshare, ect..

Translate official xDDD powered by Spain
FGED GREDG RDFGDR GSFDG