Author Topic: MovePlayer issue  (Read 918 times)

0 Members and 1 Guest are viewing this topic.

Offline MelloYellow

  • Major(1)
  • Posts: 1
MovePlayer issue
« on: June 11, 2008, 05:21:16 pm »
Hi, I'm new to Soldat ...and Pascal. I have programming experience in Java, C, and a handful of minor, ugly languages. This language seems ...strange to me. But I'll pick it up soon, I hope.

Can anyone help me understand why this isn't working?


procedure OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer);
begin
MovePlayer(Shooter,GetPlayerStat(Shooter,'x')+1,GetPlayerStat(Shooter,'y')+1)
end;


it compiles okay, but when the player is shot..the server crashes.

Any help is appreciated, thanks.

Offline spkka

  • Camper
  • ***
  • Posts: 469
Re: MovePlayer issue
« Reply #1 on: June 11, 2008, 05:55:32 pm »
check the logs map in your soldatserver folder. And open the latest console log. It will tell you the problem

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: MovePlayer issue
« Reply #2 on: June 11, 2008, 06:14:33 pm »
check the logs map in your soldatserver folder. And open the latest console log. It will tell you the problem
nah. I tried. Nothing there.

I think it is a bug and EnEsCe will fix it in next version.
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: MovePlayer issue
« Reply #3 on: June 11, 2008, 09:15:41 pm »
"EnEsCe will fix it in next version."
Excuse me? I never said that.... Anyway,

Lets see.....
His First line of code:
Code: [Select]
procedure OnPlayerDamage(Victim,Shooter: Byte;Damage: Integer);The proper OnPlayerDamage event:
Quote
function OnPlayerDamage(Victim, Shooter: byte; Damage: integer): integer;

Offline xmRipper

  • Soldat Beta Team
  • Flagrunner
  • ******
  • Posts: 742
    • Personal
Re: MovePlayer issue
« Reply #4 on: June 12, 2008, 06:33:38 am »
Co-Founder / CTO @ Macellan
Founder Turkish Soldat Community