Major Server Update Released (April 25)

Stormeus

  • VC:MP Developer
  • oh god how did i get here im not good w computer
  • Posts: 1,128

leftspace

  • Newbie
  • Posts: 4

.

  • VC:MP Beta Tester
  • .
  • Posts: 1,804
Re: Major Server Update Released (April 25)
« Reply #92, on May 4th, 2016, 04:03 AM »
Quote from leftspace on May 4th, 2016, 03:48 AM
Why do not you let me develop
I'm gonna tell you something that most people won't, because they're too polite. However, I don't know the meaning of politeness. Which is why I'm able to tell you that you won't get any source of anything as long as you keep being genuine retard.
.

Thijn

  • VC:MP Beta Tester
  • Posts: 1,689
Re: Major Server Update Released (April 25)
« Reply #93, on May 4th, 2016, 07:02 AM »
Quote from . on May 4th, 2016, 04:03 AM
Quote from leftspace on May 4th, 2016, 03:48 AM
Why do not you let me develop
I'm gonna tell you something that most people won't, because they're too polite. However, I don't know the meaning of politeness. Which is why I'm able to tell you that you won't get any source of anything as long as you keep being genuine retard.
I don't think acting normal is getting you the source code either, to be fair.

rulk

  • Full Member
  • Shine Jesus Shine
  • Posts: 119
We are all god's children.

KAKAN

  • Wiki Contributor
  • Posts: 3,346
Re: Major Server Update Released (April 25)
« Reply #95, on May 4th, 2016, 12:12 PM »Last edited on May 4th, 2016, 12:16 PM
Quote from rulk on May 4th, 2016, 11:51 AM
Crashed with address 688D0124

Not sure if this is the right place to post this but i was doing some client side scripting.
Crash Log

What were you doing

I was adding a button using the following code
Client Side Script
try this:
Code: [Select]
// Create the Start Button
StartButton <- GUIButton( VectorScreen( 235, 440 ), VectorScreen( 170, 20 ), Colour( 255, 255, 100 ), "Play" );
StartButton.AddFlags( GUI_FLAG_MOUSECTRL ); //This might fix the problem.
GUI.SetMouseEnabled( true );

function GUI::ElementClick( element, mouseX, mouseY )
{
if ( element == ::StartButton )
{
// Delete Logo
::Logo = null;

// Delete the Start Button
::StartButton = null;

// Disable mouse capture
this.SetMouseEnabled( false );
}
}
You can contact me using Discord, at Developers.CPP( check off-board to find the invite link )
Github: https://github.com/theKAKAN

rulk

  • Full Member
  • Shine Jesus Shine
  • Posts: 119
Re: Major Server Update Released (April 25)
« Reply #96, on May 4th, 2016, 12:17 PM »
Thanks, I think the crash is caused by trying to delete the button instance within the ElementClick event, because if I comment that line out, I don't get the crash.

Code: [Select]
// Delete the Start Button
::StartButton = null;
We are all god's children.

Pun1sh3r

  • Wiki Contributor
  • Posts: 15
Re: Major Server Update Released (April 25)
« Reply #98, on May 4th, 2016, 09:34 PM »
Quote from ysc3839 on May 3rd, 2016, 10:47 AM
Try this.
local veh = CreateVehicle
Stats[player.ID].Vehicle = veh.ID;
player.Vehicle = veh;
Thanks, atleast the Vehicle gets deleted now but somehow I cant enter the Vehicle?
Client Debug Message tells me "[VEHICLE] Denied enter: vehicle 1, dat 15, flag 1, obj 18, err 70"
cant enter the Vehicle with using button F or player.Vehicle function.

ysc3839

  • VC:MP Beta Tester
  • Posts: 620

Thijn

  • VC:MP Beta Tester
  • Posts: 1,689

ysc3839

  • VC:MP Beta Tester
  • Posts: 620

maxorator

  • VC:MP Developer
  • Posts: 153
Re: Major Server Update Released (April 25)
« Reply #103, on May 8th, 2016, 10:39 AM »
Quote from ysc3839 on May 8th, 2016, 04:09 AM
Quote from Thijn on May 7th, 2016, 06:22 PM
Quote from ysc3839 on May 7th, 2016, 04:47 PM
That's something wrong with PluginFuncs::GetPluginExports. Hope you fix it soon! :)
Works fine here. What are you having issues with? Show some code.
I decompile the sqlite plugin and found that GetPluginExports has two arguments. But in the plugin.h it's three.
This is from the plugin.h in the repo which I linked in the first post:
Code: [Select]
/* GetLastError: vcmpErrorNoSuchEntity */
const void** (*GetPluginExports) (int32_t pluginId, size_t* exportCount);

ysc3839

  • VC:MP Beta Tester
  • Posts: 620
Re: Major Server Update Released (April 25)
« Reply #104, on May 8th, 2016, 01:05 PM »
Quote from maxorator on May 8th, 2016, 10:39 AM
Quote from ysc3839 on May 8th, 2016, 04:09 AM
Quote from Thijn on May 7th, 2016, 06:22 PM
Quote from ysc3839 on May 7th, 2016, 04:47 PM
That's something wrong with PluginFuncs::GetPluginExports. Hope you fix it soon! :)
Works fine here. What are you having issues with? Show some code.
I decompile the sqlite plugin and found that GetPluginExports has two arguments. But in the plugin.h it's three.
This is from the plugin.h in the repo which I linked in the first post:
Code: [Select]
/* GetLastError: vcmpErrorNoSuchEntity */
const void** (*GetPluginExports) (int32_t pluginId, size_t* exportCount);
It's different from the VCMP.h in stormeus's 0.4 squirrel repo.