Page 1 of 1

Mid function help

PostPosted: Mon Oct 29, 07 6:07 pm
by Cozmo
I've been making a mutator that lets you PM other players and so far, this little part of the script was giving me hell. :|

Code: Select all
   if (mid(S, 0, 6) == "PM ID ")
   {
      HighlightedPlayer = mid(S, 7);
   }


This line is to find a specific player via their ID.

The main problem I'm having is with the line HighlightedPlayer = mid(S, 7);

This is the compile error I'm getting: Error, Type mismatch in '='

I've looked it up on UnrealWiki and it tells me it's a bad operator, so I've tried =, ==, and nothing. Can anyone help me with this?

Thanks, Cozmo.

PostPosted: Mon Oct 29, 07 6:10 pm
by Dae
~Cozmo~ wrote:HighlightedPlayer

what type of var is that?

PostPosted: Mon Oct 29, 07 6:11 pm
by Cozmo
Sorry, forgot to mention.

It's an int for the player ID

PostPosted: Mon Oct 29, 07 6:24 pm
by Alex
int(mid(S, 7));

PostPosted: Mon Oct 29, 07 6:29 pm
by Cozmo
Thanks Alex, that worked :D

PostPosted: Mon Oct 29, 07 6:30 pm
by Survive.
I have wanted this mod for so long :D

PostPosted: Mon Oct 29, 07 6:34 pm
by Alex
¤[ß2S]¤Sürvívë wrote:I have wanted this mod for so long :D

You do? You must've missed something, because I already made this mod 2 or 3 years ago...

PostPosted: Mon Oct 29, 07 6:34 pm
by Kaiden
Do Private Messages appear in the ServerLog, and then, the ServerConsole? If so they are not really private lol.

PostPosted: Thu Nov 01, 07 12:57 am
by ~ô¿ô~Nobody~
That was a feature of MTL160 as well.
Alex wrote:
¤[ß2S]¤Sürvívë wrote:I have wanted this mod for so long :D

You do? You must've missed something, because I already made this mod 2 or 3 years ago...


Ehh, 3 years ago, you didn't even know what coding means. :shock: :P

PostPosted: Thu Nov 01, 07 9:36 am
by Alex
~[A]Nobody~ wrote:That was a feature of MTL160 as well.
Alex wrote:
¤[ß2S]¤Sürvívë wrote:I have wanted this mod for so long :D

You do? You must've missed something, because I already made this mod 2 or 3 years ago...


Ehh, 3 years ago, you didn't even know what coding means. :shock: :P

You helped me babe. Don't ya remember? RXMDark, if I'm correct.

PostPosted: Thu Nov 01, 07 5:25 pm
by ~ô¿ô~Nobody~
Ugh, o rly?
My brain is liek a sieve :!: #-o