Page 1 of 1

Something wrong with this line?

PostPosted: Sat Jul 14, 07 6:13 pm
by Cozmo
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? :?

PostPosted: Sat Jul 14, 07 6:35 pm
by Alex
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.

PostPosted: Sat Jul 14, 07 7:06 pm
by Cozmo
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

PostPosted: Sat Jul 14, 07 7:40 pm
by Cozmo
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. :)