The online racing simulator
Searching in All forums
(471 results)
Cruise application assistance (Was: Command !send)
sun
S2 licensed
Hi,

i manageg to get the MST message working, but when i type in !send 40 sun it says 'host send money to host'.

Code:

case"!send":
InSim.Send_MST_Message(
"/msg ^7" + Connections[GetConnIdx(MSO.UCID)].PlayerName + " ^7Sent money to " + Connections[GetConnIdx(UniqueID)].UName);
break;

any one help ?

if u can please post

Regards

Owen.
sun
S2 licensed
no its not my code !

it was perfectly fine, untill he started hacking, now today the servers fine so he's not hacking (YET)
sun
S2 licensed
Hi Every one,

When i went off and tried

if
(NCN.PName.Contains("^1Officer"))

it showed the button i wanted, but when i tried

if (NCN.PName.Contains("^1Officer^0|^6OwEn"))


it didnt. I but my Officer in red - | in Black - OwEn in Light Blue.

and still nothing....

Can any one help ? its a big mystery though, because it should work!

Thanks

Regards

Owen


-------------------------------------

My Servers Been hacked

Hacked: Reinited - kicking people - Crashing InSim.

Hacker: WS.C X.

-------------------------------------
sun
S2 licensed
ok.......
sun
S2 licensed
!send command:

Can somebody give me an Example of a Send command ?

like ppl are saying its diffrent to a !pay or !buy or !sell, buts its confusing me, please i need help i'am stuggling on this.
sun
S2 licensed
Is there Away to store the officers in a txt file ?

when i want somebody to be a Officer, i type in if (NCN.PName.Contains("^1Officer^0|^6OwEn"))
{

InSim.Send..............bla bla

}

for example. Are the colors allowerd to be used or do you have to put your name as ^1Officer^0|^6OwEn with the colour codes in ? i tryed it like that the code, and it does show the button (Speed Trap).

Can any one help ?

Thanks

Owen.
sun
S2 licensed
? dont abuse me
[ocs]
sun
S2 licensed
Hi,

[OCS] Are a cruise Team created by Owen. We have a 30 slot server with a Cruise InSim and a cop system and a good layout to! We have 4 members, and we are a really active team.

i''am going to give who are in our Team:

[OCS] Owen

[OCS] Spike

[OCS] gripher

[OCS] SMOKER.


Our Server details are:


Server Name: Owens Cruise Server

Slot's: 30

Track: AS5R

InSim: Cruise.


I hope you Enjoy Cruising and have fun ! If you would like to join, E-Mail me at [email protected].

with your

Age:

Country:

LFS Username:


Hope you Enjoy our Cruise Server !

Enjoy !
sun
S2 licensed
Hi,

i'am making a cop system, done quite well with it to, but when someone isnt an admin they can still press the button, and make speed traps... Does any one know how to maker it so when your officer, it only displays to them ?

thanks,

Regards

Owen.


----------------------------

Owner of:

Owens Cruise Server

30 Slot's

InSim (Cruise)

Cop System

----------------------------
sun
S2 licensed
YAY, i fixed the error. It was because i didnt add

AddToConnectionsList(NCN); // Update Connections[] list (don't remove this line!)


sun
S2 licensed
ohhh.... But why is it doing it ? it worked alday, but when i ran it again it didnt work.
sun
S2 licensed
heres the dam error lol >.<
Last edited by sun, .
sun
S2 licensed
privatevoid NCN(Packets.IS_NCN NCN)
{
FileInfo.NewUser(NCN.UName);
InSim.Send_BTN_CreateButton(
"^1Admin " + Connections[GetConnIdx(NCN.UCID)].IsAdmin, Flags.ButtonStyles.ISB_DARK, 5, 10, 0, 40, 45, NCN.UCID, 2, false);
}

Thats the code It Highlights in yellow that code, not the packet stuff just the admin create button thing.
sun
S2 licensed
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

thats it
sun
S2 licensed
ok, but but when i start it without debugging, or starting the .exe, it crashes strate away
sun
S2 licensed
i've gave the error, theres no code error, i gave u an image
InSim Problems
sun
S2 licensed
hello,

when i start my InSim it gives me an error that it crashes, see the image below:



I load it and when i Debug it, it highlights this :

[SIZE=2]InSim.Send_BTN_CreateButton([/SIZE][SIZE=2][COLOR=#a31515]"^1Admin "[/COLOR][/SIZE][SIZE=2] + Connections[GetConnIdx(NCN.UCID)].IsAdmin, [/SIZE][SIZE=2][COLOR=#2b91af]Flags[/COLOR][/SIZE][SIZE=2].[/SIZE][SIZE=2][COLOR=#2b91af]ButtonStyles[/COLOR][/SIZE][SIZE=2].ISB_CLICK, 5, 10, 0, 40, 45, NCN.UCID, 2, [/SIZE][SIZE=2][COLOR=#0000ff]false[/COLOR][/SIZE][SIZE=2]);[/SIZE]

Please, if you can help, please post at the bottom, My team are so upset

Last edited by sun, .
sun
S2 licensed
ahh

Players[GetPlyIdx(MCI.Info[i].PLID)].Cash

or

Players[GetPlyIdx(MCI.Info[i].PLID)].Payout ?

BTW whats with the sig wtf ?
PlyPayout to user
sun
S2 licensed
hi,

i've done my X bit so they pick up there ticket, but how do i get them to get £300 when they cash it in ?

i was wondering that the answer might be in the ply pay out when you earn cash while driving

Code:

Players[GetPlyIdx(MCI.Info[i].PLID)].Payout += ConvSpeed;

I might be wrong, but yet again i'am still learning

Regards Owen


-----------------------

Owner of

Owens Cruise Server

-----------------------
sun
S2 licensed
yer, thanks dougie i'll give it a go
sun
S2 licensed
Quote from shaun463 :I would prefer to send the code by pm.

yes, actually that would be better because people wont copy your code
sun
S2 licensed
OMG I 'am bothered to learn how to code... omg i cant say because i can code, i can make windows games (little) i can make applications, but when it comes to !send command its all of topic, So STOP THAT STUFF! FOR THE LAST TIME !
!send command [Help Needed]
sun
S2 licensed
Hello,
I've com accross somthing what i was really supposed of figured out.
Its the !send command. i know how to do others, but not this, i know that it goes out of your account like the !buy, but Transffering into other peoples accounts.

If any one can help please post in here, or Explain what i'am supposed to know or do.

Thanks,

Regards

Owen.


-----------------------------

Owner of:

Owens Cruise Server

-----------------------------
sun
S2 licensed
lol i looked through the whole lfs programmer forum, lol
FGED GREDG RDFGDR GSFDG