Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ysc3839
General Discussion / Re: Server stop working when pressing Control-C
« on February 12th, 2015, 08:17 AM »
Quote from Thijn on February 11th, 2015, 06:14 PM
Pressing ctrl-c on a clean server works fine. What plugins did you load?

If you want you can send me a zip in a PM that will reproduce this crash.
Squirrel plugin. If I remove it, this error will not show.
General Discussion / Server stop working when pressing Control-C
« on February 11th, 2015, 04:00 PM »
I used VS2013 to debug the server, it shows:
First-chance exception at 0x765722CB (KernelBase.dll) in server.exe: 0x40010005: Control-C.
If there is a handler for this exception, the program may be safely continued.
Then I click Continue, it shows:
Unhandled exception at 0x0046420D in server.exe: 0xC0000005: Access violation reading location 0x000000EC.
Please fix this bug!
Quote from Gudio on February 10th, 2015, 10:12 AM
There is no point to pass an angle in degrees since 0.4 supports radians.
Code: [Select]
function GetForwardPoint( pos, angle )
  local x = pos.x + 1.0 * cos(angle) - 25.0 * sin(angle)
  local y = pos.y + 1.0 * sin(angle) + 25.0 * cos(angle);
  return Vector( x, y, pos.z );

Don't pass player's angle to GetForwardPoint function while driving the vehicle, because only vehicle's angle is changed!
GetForwardPoint( vehicle.Pos, vehicle.EulerAngle.z );

I haven't tested it.
The same issue. :(
Quote from Thijn on February 9th, 2015, 07:07 PM
Might give a bit more information: clicky
Quote from Shadow.
Code: [Select]
// [Ka]Juppi's func from,398.0.html
// ported to fit your needs
function GetForwardPoint( pos, angle ) // you must pass an angle in degrees
local rad = angle * PI / 180; // we convert to radians
                local x = pos.x, y = pos.y;
local x2 = x + 1.0 * cos(rad) - 25.0 * sin(rad); // we calculate
local y2 = y + 1.0 * sin(rad) + 25.0 * cos(rad);
                return Vector( x2, y2, pos.z ); // return a vector


Code: [Select]
player.Pos = GetForwardPoint( FindVehicle(0) /* example */, FindVehicle(0).EulerAngle.z );
But there's also something wrong...
I want to spawn a ramp in front of player's vehicle. Can somebody tell me how to calculate the pos? Thanks! :)
Support / [QUESTION/HELP] Re: Making vc-mp plugins in c#
« on February 9th, 2015, 04:44 AM »
Quote from NE.CrystalBlue on January 26th, 2015, 03:02 PM
Hi everyone
I wanted to make a plugin for vc-mp but I am (whatever you call it) in C++. I wondered if I can make plugins in c#, and if so, how can I port the headers from c++ to c#?
Help will be appreciated
C# can't compile a standard dll.
Closed Bug Reports / [BUG] Re: Cuban's bar is not complete
« on January 10th, 2015, 05:32 AM »
The same as you.
Snippet Showroom / [SCRIPT] Re: Simple UniqueID Ban
« on January 10th, 2015, 05:26 AM »
There is no text limit in SQLite. So you can replace VARCHAR(32) with TEXT
General Discussion / Re: Issue about screenshot
« on January 2nd, 2015, 02:15 PM »
I made a screenshot plugin, based on VCMP0.1 source code. It fixed this issue.
Source code:
General Discussion / Re: Issue about screenshot
« on January 2nd, 2015, 02:12 PM »
Quote from S.L.C on January 2nd, 2015, 11:42 AM
But what do you expect? To capture your whole desktop instead? LOLz ;D There's the Print Screen (Print Scr) keyboard button for that. Or a specialized software instead (there are plenty of them on google).
I just want to shot the content of game window.
General Discussion / Issue about screenshot
« on January 2nd, 2015, 11:20 AM »
When I screenshot in window mode, I will get the full screen image. What the fxxk!
So developers please fix it. :)
General Discussion / [INFO] Re: The Reasons Why Pawn Will Not Be Continued
« on January 2nd, 2015, 11:16 AM »
I think lua is good! :)
General Discussion / Re: Player.Gravity Vots all members
« on December 26th, 2014, 12:39 PM »
Player.Gravity Player.Weather Player.Gamespeed Player.WaterLevel Player.Everythings! ;D ;D
General Discussion / Re: Can you help me?
« on December 21st, 2014, 06:21 AM »
Quote from sseebbyy on December 19th, 2014, 09:37 PM
Someone should release an basic admin system, with few commands, logging with a password specified by owner. (like in 0.3, but redesigned for 0.4) :)
I wrote a plugin for my server, but it is private. I won't release it.
General Discussion / Re: Question
« on December 19th, 2014, 11:54 AM »
the VCMP Team will not support Pawn, but you can try to write it