Author Topic: onPlayerCrouchChange is bugged ?!  (Read 8059 times)

0 Members and 1 Guest are viewing this topic.

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
onPlayerCrouchChange is bugged ?!
« on: October 10, 2014, 01:08:11 pm »
I wanted to test the new event onPlayerCrouchChange by just adding Message("crouch status changed");, but when I crouched and uncrouched in game, there was no message.

Now the question is: "Is the event bugged ?"

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline S.L.C

  • Street Thug
  • *
  • Posts: 42
  • Sorry if you weren't impressed!
    • View Profile
Re: onPlayerCrouchChange is bugged ?!
« Reply #1 on: October 10, 2014, 01:22:30 pm »
By the looks of it the callback function is implemented in C++ but wasn't attached to the event. Therefore the function is never called to forward the event to the script. The following code is never executed:
Code: [Select]
function onPlayerCrouchChange( i_player, state )
{
print( "Player " + i_player.Name + " is " + (state ? "crouched" : "standing") );
}

Offline Gudio

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • Gudio
Re: onPlayerCrouchChange is bugged ?!
« Reply #2 on: October 10, 2014, 10:00:12 pm »
- Fixed onPlayerOnFireChange, onPlayerCrouchChange, onPlayerGameKeysChange
- Added onPlayerActionChange( player, oldAction, newAction ), onPlayerStateChange( player, oldState, newState )

I noticed that onPlayerCrouchChange always returns false (probably server's bug)

Linux 32-bit module
Linux 64-bit module
« Last Edit: October 10, 2014, 10:02:17 pm by Gudio »

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: onPlayerCrouchChange is bugged ?!
« Reply #3 on: October 11, 2014, 05:46:16 pm »
* sseebbyy is waiting for windows plugin update

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline ysc123

  • Street Thug
  • *
  • Posts: 29
    • View Profile
Re: onPlayerCrouchChange is bugged ?!
« Reply #4 on: October 11, 2014, 08:25:06 pm »
* sseebbyy is waiting for windows plugin update
I can build for you, your email?

Here is it http://www.solidfiles.com/d/fd8f42f7c2/squirrel.zip
« Last Edit: October 11, 2014, 08:39:15 pm by ysc123 »

Offline Gudio

  • Street Thug
  • *
  • Posts: 22
    • View Profile
    • Gudio
Re: onPlayerCrouchChange is bugged ?!
« Reply #5 on: October 11, 2014, 09:11:36 pm »
I finally got a license for Visual Studio. Compiled.

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: onPlayerCrouchChange is bugged ?!
« Reply #6 on: October 11, 2014, 11:37:57 pm »
I noticed that onPlayerCrouchChange always returns false (probably server's bug)

I hope it will be fixed soon.



* sseebbyy is waiting for windows plugin update
I can build for you, your email?

Here is it http://www.solidfiles.com/d/fd8f42f7c2/squirrel.zip

Thank you very much, I appreciate that ! but I'm really dedicated to official plugins. :D



I finally got a license for Visual Studio. Compiled.

Good, thanks !
« Last Edit: October 12, 2014, 12:23:03 am by sseebbyy »

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.



Offline ysc123

  • Street Thug
  • *
  • Posts: 29
    • View Profile
Re: onPlayerCrouchChange is bugged ?!
« Reply #7 on: October 12, 2014, 12:51:02 pm »
I noticed that onPlayerCrouchChange always returns false (probably server's bug)

I hope it will be fixed soon.



* sseebbyy is waiting for windows plugin update
I can build for you, your email?

Here is it http://www.solidfiles.com/d/fd8f42f7c2/squirrel.zip

Thank you very much, I appreciate that ! but I'm really dedicated to official plugins. :D



I finally got a license for Visual Studio. Compiled.

Good, thanks !
You can download VS2013 Express for free. And it's easy to complie it!

Offline sseebbyy

  • VC:MP Veteran
  • *****
  • Posts: 774
  • Immortal VC:MP Player
    • View Profile
    • Zombie Invasion => Server Forum [DEAD PROJECT]
Re: onPlayerCrouchChange is bugged ?!
« Reply #8 on: October 12, 2014, 08:50:35 pm »
I don't want to join to that "world" yet :D but thanks for the suggestion.

Quote
Painful/Noob scripters acts like: I Am The Best Scripter Because I Announce My Releases With Big Font Size Without Giving Too Much Info' In The Hope They All Will Download And Check It. I Ignore Bad Replies, Replies That I Could Learn From, And Replies With So Much Text.