OK I got it, vehicles starts from 1 instead of 0 and I was saving the wrong car.
Thank you to everyone who tried to help me c:
Thank you to everyone who tried to help me c:
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.
Show posts MenuQuote from: Mötley on Nov 26, 2016, 12:14 AM...
Quote from: Xmair on Nov 26, 2016, 04:52 AMfunction GetRadiansAngle(Rotation)
Source.
{
local angle;
angle = ::asin( Rotation.z ) * -2;
return Rotation.w < 0 ? 3.14159 - angle : 6.28319 - angle;
}
db.query("UPDATE vehicles SET rx="+player.Vehicle.EulerAngle.x+", ry="+player.Vehicle.EulerAngle.y+", rz="+GetRadiansAngle(player.Vehicle.Angle)+" WHERE id="+player.Vehicle.ID);
Message("Angle set to: "+player.Vehicle.EulerAngle);
Message("AngleZ radians: "+GetRadiansAngle(player.Vehicle.Angle));
local rot = Vector(sqlite_column_data(query, 4), sqlite_column_data(query, 5), sqlite_column_data(query, 6));
vehicle.EulerAngle = rot;
Quote from: Mötley on Nov 26, 2016, 12:03 AMHave you tried
http://forum.liberty-unleashed.co.uk/index.php/topic,1771.0.html ?
This is a bug that really needs to be solved..
I hope you didn't do a lot of vehicle saving at once ..
QuerySQL(LDB, "UPDATE Accounts SET Level=1 WHERE (SELECT TimeSinceLastJoin FROM Accounts WHERE Username='"+player.Name+"') > 259199");
QuerySQL(LDB, "UPDATE Accounts SET TimeSinceLastJoin="+time()+" WHERE Name='"+player.Name+"'");
Quote from: Kewun on Sep 20, 2016, 02:15 PMQuote from: Ankris on Sep 19, 2016, 07:58 PM:whensomeonetriestocopyaurora:
copy? what do you mean? im just making a server. You have nothing to it, youre just envy that i am better than you.
Quote from: Kewun on Sep 20, 2016, 03:57 PMthe new one sucks, because trying to use INI_Open("stats.ini") Gives error: Wrong INI Pointer even if the file exists
Quote from: Kewun on Sep 20, 2016, 02:24 PMbecause multi accounts might lag my server in a ini with 30 kb when i tested with vehicles in onscriptload, saving all their pos and health ( the accounts stat.ini is 1 kb, so still much to achieve 30 kb)
Quote from: MEGAMIND on Sep 16, 2016, 02:32 PMQuote from: LuisModsHD on Aug 15, 2016, 05:34 AM.Quote from: Doom_Kill3R on Aug 08, 2016, 12:23 PM..
test <- null;
function Script::ScriptLoad()
{
test = GUILabel(VectorScreen(1, 1), Colour(255,265,234), "Hello World");
test.AddFlags(GUI_FLAG_3D_ENTITY);
test.Set3DTransform(Vector(-1864.62, 382.307, 669.333));
GUI.AddChild(test);
}
Quote from: Shadow on Sep 12, 2016, 03:52 PMThere's already something like that in the plugin header defined asvoid(*OnPlayerUpdate) (int32_t playerId, vcmpPlayerUpdate updateType);
with the possible updates beingtypedef enum {
vcmpPlayerUpdateNormal = 0,
vcmpPlayerUpdateAiming = 1,
vcmpPlayerUpdateDriver = 2,
vcmpPlayerUpdatePassenger = 3,
forceSizeVcmpPlayerUpdate = INT32_MAX
} vcmpPlayerUpdate;
You can decide whether it is a position change or a ping change in that event.
Quote from: KAKAN on Sep 12, 2016, 07:04 AMfor postion: onPlayerMove
Still running a 1sec timer is much more efficient than using that shitty callback.
For ex: Put this line in onPlayerMove: print("pos changed"); and see the spam. Do the same with 1/0.5 sec timer and notice the thing. Your function needs to execute that fast, which you can't do efficiently with Squirrel
Quote from: KAKAN on Sep 12, 2016, 06:54 AMI still don't understand. What does the update function do? A player will join your server with the version of server you're using( if that's the case )
Quote from: EK.CrystalBlue on Sep 08, 2016, 03:07 PMFPS IS (idk what is about rich/poor so just insert that thing here)
Quote from: EK.CrystalBlue on Sep 07, 2016, 12:04 PMCheck if the server is trying to communicate with you or no
Use a packet sniffer, filter receiving packets UDP *without* the prefix 'MP04' or 'VCMP' and check if the server is sending packets to you.
If its not, your ISP is probably being a b*tch