Quote from dawesdust_12 :The little woman lied to me, I asked him the day it was released, and he said no!

GRR!

LOL!, I had to keep you in suspence

Quote from Dygear :So this is all your fault!
You've forgiven tho, as it has helped the community as I whole.
Great worK!

Hehe, It stopped the "I WANTZZZ CRUIZE INSIMZZ".
Still, it's received over 9,000 views...surely that proves some kind of point...whatever it may be?

lol I said it to him when it was released too, and he denied it...but I knew
ok, i really cant figure out how to make it so:
that when a user uses
!send -500 kiss me
or so,
it blocks it
so like if the !send amount contains a -
it blocks it and sends a message to the user: transaction failed,
u kno?
the message works (duh) but after a long day i dont know what command or code to type to block this. since this is a big problem, i ask now

tyvm
@kiss me: see that, the guys of the forum help me with the problem of the negative balance, it's a simply code for ban when you passed the limit of negative balance.
http://www.lfsforum.net/showthread.php?t=42290
Quote from kiss me :ok, i really cant figure out how to make it so:
that when a user uses
!send -500 kiss me
or so,
it blocks it
so like if the !send amount contains a -
it blocks it and sends a message to the user: transaction failed,
u kno?
the message works (duh) but after a long day i dont know what command or code to type to block this. since this is a big problem, i ask now

tyvm

PM'ed
itsq not for when to pass negative balance.
on my server , using this insim(modified)
people can steal other peoples cash by typing
!send -85010 user
i want to block this
something like:

if (Msg[1] > 0)
{
// do your send code here
}
Make sure that the first arg for the !send function is not a negative number.

if ($arg[0] <= 0)
break;
Quote from Dygear :if ($arg[0] <= 0)
break;

That's backwards

Also, it's argument 1 you need to look at, as 0 is the !send part
Quote from dougie-lampkin :something like:

if (Msg[1] > 0)
{
// do your send code here
}

Quote from dougie-lampkin :That's backwards

Also, it's argument 1 you need to look at, as 0 is the !send part

You are wrong. You need to convert it to a int first. You cant check if its higher then something, if its a string value.
Yes, that too
hehe, well, thanks all, this got me back on track, together with boses pm's
thanks all
ok, i've made this code
it wont ban you if you pay a fine or so and go under 1000
if u go under 1000, by example wrong way, restricted area, speeding etc
this will ban you when you go under 1000 by any reason, it checks your money, if its under E1000 bye bye
you still need to add for how many days or so it will ban the player,
now i gotta eat, but i'm olso gonna add code wich makes ur money go back to: [your set amount]

my tribute to this insim, i asked enough, time to give a little
if it can be cleaner, just correct me
if (Connections[GetConnIdx(NPL.UCID)].Cash < -1000)
{
InSim.Send_MST_Message("^1" + Connections[GetConnIdx(NPL.UCID)].Playername + " ^1has gone bankrupcy, banned for 2 days!");
InSim.Send_MST_Message("/ban " + Connections[GetConnIdx(NPL.UCID)].Username + "100");
}

i dont know if the ban thing works by days or so
@kiss me: You can use this code in more places for example with the command !send or player left pits, ect, for check more time
Quote from kiss me :ok, i've made this code
it wont ban you if you pay a fine or so and go under 1000
if u go under 1000, by example wrong way, restricted area, speeding etc
this will ban you when you go under 1000 by any reason, it checks your money, if its under E1000 bye bye
you still need to add for how many days or so it will ban the player,
now i gotta eat, but i'm olso gonna add code wich makes ur money go back to: [your set amount]

my tribute to this insim, i asked enough, time to give a little
if it can be cleaner, just correct me
if (Connections[GetConnIdx(NPL.UCID)].Cash < -1000)
{
InSim.Send_MST_Message("^1" + Connections[GetConnIdx(NPL.UCID)].Playername + " ^1has gone bankrupcy, banned for 2 days!");
InSim.Send_MST_Message("/ban " + Connections[GetConnIdx(NPL.UCID)].Username + "100");
}

i dont know if the ban thing works by days or so

Not bad, but the ban line is a little bit off. It should be something like:

InSim.Send_MST_Message("/ban " + Connections[GetConnIdx(UniqueID)].Username + " 2");

There needs to be a space before the 2, and it's 2 for 2 days

To get it to reset isn't as hard as it sounds. You can make a new method in FileInfo.cs, similar to NewUser. Just name it differently, and get rid of the 'if (File.Exists) line'. You can then call this method (FileInfo.YourMethodNameHere) when you want to reset someone

As for where to put it, I recommend making a new timer of 5 seconds or so, so that every time the timer elapses, it has a foreach loop that cycles through each player, checking his/her money. Then you can have your '< -1000 = ban' part
if (Connections[GetConnIdx(NPL.UCID)].Cash < -5000)
{
InSim.Send_MST_Message( Connections[GetConnIdx(Unique)].Playername + " ^1has gone bankrupt, and was banned for 2 days!");
InSim.Send_MST_Message("/ban " + Connections[GetConnIdx(NPL.UCID)].Username + " 3");

A bit cleaner .
Quote from shaun463 :
if (Connections[GetConnIdx(NPL.UCID)].Cash < -5000)
{
InSim.Send_MST_Message( Connections[GetConnIdx(Unique)].Playername + " ^1has gone bankrupt, and was banned for 2 days!");
InSim.Send_MST_Message("/ban " + Connections[GetConnIdx(NPL.UCID)].Username + " 3");

A bit cleaner .

no offence but u just changed the amount of when to ban, and change the days of ban, and some text,
u personelised it
And it still wouldn't work
how does it not work?
mine does, but shaun's wouldn't right?
i spot the not
riplys
-
(Robbo01) DELETED by Robbo01
It wouldn't work as you haven't left a gap between the end of the username and the length of ban. To LFS this reads "/ban dougie-lampkin2", which wouldn't work...all Shaun did was copy it and put in his own message (which he edited after seeing mine >.<)
and he added a space between the username and the number

btw c# lets you concatenate strings with +?
Quote from Shotglass :btw c# lets you concatenate strings with +?

Yup.


string[] Msg;

Msg[0] = "Hello";
Msg[1] = "World";

Console.WriteLine(Msg[0] + " " + Msg[1]);

oh dear, this has been bugging me all night
Error 2 A local variable named 'i' cannot be declared in this scope because it would give a different meaning to 'i', which is already used in a 'parent or current' scope to denote something else C:\Users\Dinsterzz\Documents\Cruise Insim 1.0\Cruise Tutorial\LFS_External_Client\LFS_External_Client\Form1.cs 722 42 CruiseTutorial

for (int i = (MCI.Info[0].PLID); i < Players.Count; i++)
at mci(duh)

how can i resolve this,
they should make a dutch version of MSVBS
would be much easier for me
Simply change the for code, To the following...

for(int i = 0; i < MCI.NumC; i++)

E: I just realised, This isnt the bug you have. You still have wrong code above tho, So do change it.
what?
for (int i = 0; i < Players.Count; i++)
{
}

This is a loop, what is your meaning of the ask?, what do you want?

FGED GREDG RDFGDR GSFDG