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 - thijn

Pages: [1] 2 3 ... 45
1
Script Releases / Re: Function Accessible Locs like on 0.3
« on: October 11, 2014, 02:08:11 pm »
Lol, did you test this?
So many inpoly calls will lagg the shit out of your server in no time.

You're indeed better off using pickups for these kinda things.

2
General Discussion / Re: Server Scripts
« on: October 09, 2014, 03:14:43 pm »
Why not move to 0.4? If you're just starting up you might as well start with the new version. Otherwise you'll have to move afterwards. Sounds like doing stuff twice.

3
You can easily increase that timer to 1 or 2 seconds, still takes you up pretty quickly and reduces lag.

4
General Discussion / Re: VCMP 0.3 multiple instances?
« on: October 08, 2014, 09:05:30 am »
Because 0.4 is awesome, and you should be using that instead of 0.3.

5
General Discussion / Re: Problem 0.4 RC
« on: October 06, 2014, 10:30:53 pm »
The server has probably been compiled with the -fsanitize=address flag, useful for debugging but not for release builds.

* thijn prods Stormeus

6
Script Discussion / Re: Full document for Squirrel plugins
« on: October 04, 2014, 12:33:22 pm »
if ( q && mysql_num_rows( q ) > 0 )
Updated my code :]

7
Script Discussion / Re: using custom object as bullet
« on: October 03, 2014, 05:58:22 pm »
That's the code I posted.

8
Script Discussion / Re: Full document for Squirrel plugins
« on: October 02, 2014, 08:21:23 pm »
Code: [Select]
function onScriptLoad()
{
local DB = mysql_connect("localhost", "user", "pass", "database");
if ( DB )
{
local q = mysql_query(DB, "SELECT * FROM accounts WHERE `username` = '" + mysql_escape_string( DB, "TestUser") + "'");
if ( q && mysql_num_rows( q ) > 0 )
{
local row = mysql_fetch_assoc( q );
print( "Username: " + row["username"] );
print( "IP: " + row["ip"] );
}
else
print("Query failed: " + mysql_error( DB ) );
}
else
print("Connection to MySQL failed: " + mysql_error( DB ) );
}

Returns:
Quote
[SCRIPT]  Username: TestUser
[SCRIPT]  IP: 127.0.0.1

9
Script Discussion / Re: Rotating Sprites
« on: October 02, 2014, 08:06:15 pm »
Post some more code. A sprite doesn't dance on your screen unless you tell it to.

10
Script Discussion / Re: using custom object as bullet
« on: October 02, 2014, 08:04:32 pm »
Then it's probably a good idea to find something else to do.

11
General Discussion / Re: VC:MP Is Stale
« on: October 02, 2014, 08:03:54 pm »
Do you really think people that play VCMP have a decent enough PC to run GTA 5? lol. You clearly don't know what the majority of the playerbase consists of.

Yes, VCMP is full of DM servers at the moment. Mainly because they're the easiest to script.

That should not be considered as a truth.Scripting a NoN-DM server is easy unless you don't have the right IQ level for it.
An RPG server requires a lot more work before you can actually properly play on it. Our old GameSparks script had 100 times more lines of code then any released DM script at that time. And no, that wasn't because it had a lot of white spaces or anything.

I said hard, I actually should've said more work. You're right, once you know how to script nothing is really hard anymore. It just requires work and time.

12
Script Discussion / Re: using custom object as bullet
« on: October 02, 2014, 12:56:32 pm »
Code: [Select]
// [Ka]Juppi's func from http://forum.liberty-unleashed.co.uk/index.php/topic,398.0.html
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
}

Object.MoveTo( GetForwardPoint( player.Pos, player.Angle ) )

Not tested, but it should give you an idea.

13
General Discussion / Re: VC:MP Is Stale
« on: October 02, 2014, 12:08:15 pm »
Do you really think people that play VCMP have a decent enough PC to run GTA 5? lol. You clearly don't know what the majority of the playerbase consists of.

Yes, VCMP is full of DM servers at the moment. Mainly because they're the easiest to script.

14
Script Discussion / Re: Full document for Squirrel plugins
« on: October 01, 2014, 11:14:14 pm »
The rows related mysql function don't need the connection, they need the rowset returned from mysql_query.

15
Script Discussion / Re: MySQL Connect
« on: October 01, 2014, 07:13:50 pm »
mysql_connect(server, user, pass, database)

Having no password is a bad idea. Just use phpmyadmin to create a new user with a password and only give it access to your server database. Thats like 10 seconds work, and a LOT more secure.

Pages: [1] 2 3 ... 45