Mid function help

The best and quickest support by a group of top-notch editing specialists, guaranteed!

Moderator: Forum Guards

Mid function help

Postby Cozmo » Mon Oct 29, 07 6:07 pm

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.
Last edited by Cozmo on Mon Oct 29, 07 6:07 pm, edited 1 time in total.
Cozmo_RPG (v1 & v2)
MPConversations - A tool for creating multiplayer RPG stuff
Cozmo
Master
 
Posts: 1266
Joined: Tue Jun 28, 05 10:53 am
Location: UK

Postby Dae » Mon Oct 29, 07 6:10 pm

~Cozmo~ wrote:HighlightedPlayer

what type of var is that?
User avatar
Dae
Alpha
 
Posts: 12086
Joined: Sat Sep 06, 03 4:40 pm

Postby Cozmo » Mon Oct 29, 07 6:11 pm

Sorry, forgot to mention.

It's an int for the player ID
Cozmo_RPG (v1 & v2)
MPConversations - A tool for creating multiplayer RPG stuff
Cozmo
Master
 
Posts: 1266
Joined: Tue Jun 28, 05 10:53 am
Location: UK

Postby Alex » Mon Oct 29, 07 6:24 pm

int(mid(S, 7));
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby Cozmo » Mon Oct 29, 07 6:29 pm

Thanks Alex, that worked :D
Cozmo_RPG (v1 & v2)
MPConversations - A tool for creating multiplayer RPG stuff
Cozmo
Master
 
Posts: 1266
Joined: Tue Jun 28, 05 10:53 am
Location: UK

Postby Survive. » Mon Oct 29, 07 6:30 pm

I have wanted this mod for so long :D
User avatar
Survive.
Master
 
Posts: 1573
Joined: Wed Dec 21, 05 2:25 pm
Location: Uk, Wales

Postby Alex » Mon Oct 29, 07 6:34 pm

¤[ß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...
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby Kaiden » Mon Oct 29, 07 6:34 pm

Do Private Messages appear in the ServerLog, and then, the ServerConsole? If so they are not really private lol.
------
Kaiden
Alpha
 
Posts: 7003
Joined: Wed Jan 18, 06 11:21 pm
Location: England

Postby ~ô¿ô~Nobody~ » Thu Nov 01, 07 12:57 am

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
Last edited by ~ô¿ô~Nobody~ on Thu Nov 01, 07 12:58 am, edited 1 time in total.
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas

Postby Alex » Thu Nov 01, 07 9:36 am

~[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.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby ~ô¿ô~Nobody~ » Thu Nov 01, 07 5:25 pm

Ugh, o rly?
My brain is liek a sieve :!: #-o
Nobody is perfect...
------------------------------
Longc[A]t wrote:I still think Dae is a russian spambot.

~[A]Daedalus~ wrote:There will be a day when my patience goes away and you, along with all who rant with you, will get banned.

ô¿ô¥[GODZ]¥NOCHANC wrote:I can ban any one I want ANY time I want. You have no rights here.
User avatar
~ô¿ô~Nobody~
Alpha
 
Posts: 2520
Joined: Fri Dec 31, 04 3:20 pm
Location: Proclarush Taonas


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 6 guests