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 - Kenneth Law
1
General Discussion / Re: VCMP wiki is down
« on February 29th, 01:08 AM »
When will wiki be up again?
2
Bugs and Crashes / [BUG] Re: GUI label invisible!!
« on February 15th, 01:54 PM »
I was using the empty GUILabel() as he said in the topic however the problem still exists
3
Bugs and Crashes / [BUG] GUI label invisible!!
« on February 15th, 02:40 AM »
Description
Some labels with certain text and font sizes do not show up.
For instance:
Code: [Select]
label = GUILabel();
label.Pos = VectorScreen(300, 200);
label.TextColour = Colour(255, 255, 255);
label.Text = "test";
label.FontSize = 14;
But if I change the text to "testtesttest" or set the font size to 18, it becomes visible again.

Reproducible
always

What you were doing when the bug happened
Not doing anything

What you think caused the bug
I don't know. It's very strange.
4
Bugs and Crashes / [Bug] Re: Questions about two-dimensional array
« on February 15th, 02:20 AM »
Thx a lot.
Now problem has been solved.
I am not sure whether you are right but I did it like this
Code: [Select]
arr <- array(2, null);
arr[0] = [0, 0];
arr[1] = [0, 0];
and it works.
5
Bugs and Crashes / [Bug] Questions about two-dimensional array
« on January 28th, 10:25 AM »
Description
Let's just start with an example.
At first I defined an array
Code: [Select]
Array<-array(2,array(2,0));
And while I changed the value of Array[1][1] to 3, the value of Array[2][1] was also automatically changed to 3, which is not reasonable.
I have tested a lot of times and it was proved that the value of Array[2][1] always equals to that of Array[1][1] no matter how I try to make them two different elements.
Here is the code which I used for test
Code: [Select]
function onScriptLoad()
{
Array<-array(2,array(2,0));
}
function onPlayerCommand( player, cmd, text )
{
if(cmd=="change")
{
if(text&&IsNum(text))
{
Array[1][1]=text.tointeger();
}
}
else if(cmd=="check")
{
MessagePlayer("Array[2][1]: "+Array[2][1],player);
}
}

Reproducible
Always

What you were doing when the bug happened

Not doing anything

What you think caused the bug
Maybe squirrel language doesn't allow the existence of two-dimensional array?
6
Bugs and Crashes / Bugs of function AddChild
« on September 24th, 2019, 10:18 AM »


Description
Once an element was added as a child of another one, its alpha will always follow its parent's one. And also, this only occurs when I re-change the parent's alpha.
Like there are two labels whose names are A and B. I made label A a child of label B. Now if I reset the alpha of label B to a different value, the alpha of label A will also be changed automatically to the same value as that of label B.

Reproducible
Always

What you were doing when the bug happened
I was changing the alpha of parent's element.

What you think caused the bug
One element being a child of another one
7
Script and Content Requests / Re: How to lock a bike?
« on September 12th, 2019, 12:49 AM »
oh oh ok
8
General Discussion / Re: New feature request
« on September 11th, 2019, 07:43 AM »
Quote from Doom_Kill3R on September 11th, 2019, 07:37 AM
Its not implemented yet
Alright...Any idea when it will be on?
9
General Discussion / Re: New feature request
« on September 11th, 2019, 07:16 AM »
Quote from Doom_Kill3R on September 11th, 2019, 05:53 AM
Quote from Kenneth Law on September 11th, 2019, 01:48 AM
How? Can a player decide whichever weather he wants via Client-Side?
Nah you can just set a player's weather client side if his world is different, this will change the weather only for that player and not the whole server.
Sounds not bad. Could you tell me how to edit? What's the code for it?
10
General Discussion / Re: New feature request
« on September 11th, 2019, 01:48 AM »
Quote from Athanatos on September 10th, 2019, 07:52 PM
Client-side weather settings should be enough.
How? Can a player decide whichever weather he wants via Client-Side?
11
Script and Content Requests / Re: How to lock a bike?
« on September 11th, 2019, 01:40 AM »
Quote from Athanatos on September 10th, 2019, 07:56 PM
Quote from Kenneth Law on September 10th, 2019, 09:57 AM
I've used the code vehicle.Locked=true but players can still get in the bike.
Read posts carefully, and don't use google translate.
I wasn't using any translator man. And which post exactly do you refer to?
12
Script and Content Requests / Re: How to lock a bike?
« on September 10th, 2019, 02:34 PM »
Quote from MatheuS on September 10th, 2019, 12:45 PM
Quote from Kenneth Law on September 10th, 2019, 11:49 AM
Quote from MEGAMIND on September 10th, 2019, 11:30 AM
Quote from Kenneth Law on September 10th, 2019, 09:57 AM
How can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
hmm well, try to eject player from vehicle and display message its locked but define if its vehicle 191 for bike
It's too wired to eject a player from a bike. In fact, the server Argonath RPG has found a way to avoid a player from getting on a bike without ejection. But I don't know how that is done. So I want someone to tell me.
try using this:

Code: [Select]
function onPlayerEnteringVehicle( player, vehicle, door )
{
if( vehicle.Model == 191 ) return 0;
}
Cool! It works! Thanks a lot for your help!
13
Script and Content Requests / Re: How to lock a bike?
« on September 10th, 2019, 11:49 AM »
Quote from MEGAMIND on September 10th, 2019, 11:30 AM
Quote from Kenneth Law on September 10th, 2019, 09:57 AM
How can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
hmm well, try to eject player from vehicle and display message its locked but define if its vehicle 191 for bike
It's too wired to eject a player from a bike. In fact, the server Argonath RPG has found a way to avoid a player from getting on a bike without ejection. But I don't know how that is done. So I want someone to tell me.
14
Script and Content Requests / How to lock a bike?
« on September 10th, 2019, 09:57 AM »
How can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
15
General Discussion / Re: New feature request
« on September 10th, 2019, 08:51 AM »
Any staff here feels free to reply to this post? ;D
I am really in need of this new function in order for my server to be improved.