Menu

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.

Show posts Menu

Messages - Thijn

#46
General Discussion / Re: [Sloved] 04rel004
May 25, 2017, 08:50 AM
For future reference, you can always find the latest version mirrored here: http://u04.thijn.ovh/
#47
Please read http://forum.vc-mp.org/?topic=688.0
This is not a bug, it's a crash. So follow that part of the readme.
#48
Servers / Re: Mexico City
May 19, 2017, 06:34 AM
Add some actual server info (IP, Port) or this topic gets removed.

See the big fat red line
#49
Quote from: KingOfVC on May 18, 2017, 05:58 PMExample code:

function onPlayerCommand( player, cmd, text )
{
 if( cmd == "heal" )
{
 if( player.Health > 99 ) MessagePlayer( "You no need be healed. ", player );
else if( player.Cash < 100 ) MessagePlayer( "You need $100 to heal!", player );
else
{
 player.Health = 100;
MessagePlayer( "Healed.", player );
}
}
}
You forgot to actually take some money of the player.
#50
Grow up, it's an 18+ game.

Locked.
#51
Denied, locked.
#52
Quote from: KAKAN on May 04, 2017, 02:01 PMoh man, can't you really understand that thing? That's just what he doesn't want.
Squirrel is synchronous in nature, if that code is executed, then every player will lag until the data is received.
So, its doing something like this:
player-on-chat:
while(true){};
That condition will stay true until the data is received.
Now suppose, its for 5 seconds, then that message would appear after 5 seconds, and during that 5 seconds, chat or heck the players won't be synced because the server is busy in doing something else.
Then you didn't understand his code. A callback function is fired when the separate thread where the request is being done is finished, so there will be no blocking.

It's just like the sockets implementation of the official plugin.
#53
Script Showroom / Re: Vehicle System
Apr 28, 2017, 06:36 AM
Quote from: KAKAN on Apr 28, 2017, 02:08 AM
Quote from: kennedyarz on Apr 27, 2017, 06:06 PMNot recommended as it confuses the newbie, it is better to do it separate and will see more if he has an error.
local pPos = player.Pos;
local query = format("UPDATE Vehicles( PX, PY, PZ, Angle ) VALUES( %f, %f, %f, %f ) WHERE ID=%i",
 pPos.x,
 pPos.y,
 pPos.z,
 player.Angle,
 v.ID
);
QuerySQL( db, query );
Okay now?
That is not a valid query.

Quote from: kennedyarz on Apr 27, 2017, 06:06 PM
Quote from: Xmair on Apr 27, 2017, 04:20 PM
Quote from: kennedyarz on Apr 27, 2017, 12:42 PMUse this method, so there will be no need to restart the server so that the vehicle appears where I put it

QuerySQL( db,"UPDATE Vehicles SET PX='"+player.Pos.x+"' WHERE ID='"+v.ID+"'");
QuerySQL( db,"UPDATE Vehicles SET PY='"+player.Pos.y+"' WHERE ID='"+v.ID+"'");
QuerySQL( db,"UPDATE Vehicles SET PZ='"+player.Pos.z+"' WHERE ID='"+v.ID+"'");
QuerySQL( db,"UPDATE Vehicles SET Angle='"+player.Angle+"' WHERE ID='"+v.ID+"'");
QuerySQL( db, "UPDATE Vehicles SET PX = '" + player.Pos.x + "', PY = '" + player.Pos.y + "', PZ = '" + player.Pos.z + "', Angle = '" + player.Angle + "' WHERE ID = " + v.ID );

Not recommended as it confuses the newbie, it is better to do it separate and will see more if he has an error.
And then they are confused because their server lags. Nah. It's better to teach them correctly, and just explain what's happening instead of learning them the wrong way.
#54
Support / Re: Client Error
Apr 22, 2017, 10:52 AM
Does http://u04.maxorator.com/ load in your normal browser? You should get a 403 Forbidden.
#55
Locked for obvious reasons.
#56
Quote from: aXXo on Apr 20, 2017, 05:53 PMwith a programming teacher who added Squirrel Scripting as the curriculum for little kids.
If that is the case, I really hope education in Pakistan is not as fucked up that it teaches people such a low level of understanding of any scripting language as people on this forum.
#57
Servers / Re: [0.4] Argonath RPG 3.0
Apr 20, 2017, 06:53 PM
Any new replies about this argument will be removed without warning. If you have something useful to say about Argonath, please feel free to post. Otherwise, shut up.
#58
No.
#59
Support / Re: Error with script
Apr 07, 2017, 06:57 AM
Quote from: QW.jester on Apr 07, 2017, 06:31 AM

Help me pls
Make your own topic.
#60
Support / Re: Error with script
Apr 06, 2017, 06:36 AM
Is the folder actually there? It makes sense the plugin makes the file, but can't make folders. Make sure you use the capitals right, linux is case sensitive.