Author Topic: Beta8 Output plugin crash  (Read 282 times)

Azazel

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Beta8 Output plugin crash
« on: June 18, 2018, 12:38:36 PM »
Hi!

I just saw weird things about this function "__declspec (dllexport) void Draw (int _iState, int * _piNumQuads, void ** _ ppQuad, int * _piNumString, void ** _ ppString)".
When I add "extern" C "" to use it, the game crashes when I click on "On Track"
With others fonction it works.

Any idea?

Thanks


PiBoSo

  • Administrator
  • Sr. Member
  • *****
  • Posts: 971
    • View Profile
Re: Beta8 Output plugin crash
« Reply #1 on: June 22, 2018, 02:08:59 PM »

Please note that "_piNumQuads" and "_piNumString" must always be set ( to zero if nothing must be drawn ).

Example source code updated.

Azazel

  • Jr. Member
  • **
  • Posts: 25
    • View Profile
Re: Beta8 Output plugin crash
« Reply #2 on: June 28, 2018, 06:23:32 AM »
Thanks, it works!!  ;D