Something wrong with this line?

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

Moderator: Forum Guards

Something wrong with this line?

Postby Cozmo » Sat Jul 14, 07 6:13 pm

In my helicopter, it's all compiling well apart from one line.

Code: Select all
DeusExPlayer.ClientMessage("You have chosen to start mission "$MissionName$". Are you sure? Click again to start.");


I don't see a problem with it, but my compiler keeps giving me hell with it.

Code: Select all
\DXWarBlackHelicopter.uc(56) : Error, 'DeusExPlayer': Bad command or expression


Any suggestions? :?
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 » Sat Jul 14, 07 6:35 pm

DeusExPlayer = ???
You need a variable eh ;)
Code: Select all
function stuff()
{
  local DeusExPlayer Player;
  Player.ClientMessage("ClientMessage!");
}


Make sure though, that you define who or what Player is.
Alex
Alpha
 
Posts: 8067
Joined: Wed Nov 12, 03 4:51 pm

Postby Cozmo » Sat Jul 14, 07 7:06 pm

Alex wrote:DeusExPlayer = ???
You need a variable eh ;)
Code: Select all
function stuff()
{
  local DeusExPlayer Player;
  Player.ClientMessage("ClientMessage!");
}


Make sure though, that you define who or what Player is.


Oh yeah! Completely forgot about that! xD Thanks Alex. :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 Cozmo » Sat Jul 14, 07 7:40 pm

Could someone host a server for me for a few minutes? I wanna test it but I can't host. Internet or LAN even, oddly. I'll PM someone the beta helicopter if they host for me. :)
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


Return to Editing issues

Who is online

Users browsing this forum: No registered users and 2 guests
cron