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
Pages: [1] 2
1  Scripting / Script Help / Re: So I'm working on a code to change vehicle color but line 8 keeps having issues. on: June 14, 2013, 04:28:05 am
I'm about to test it. Sorry I hadn't checked here yesterday, stuff came up.
2  Scripting / Script Help / Re: So I'm working on a code to change vehicle color but line 8 keeps having issues. on: June 12, 2013, 11:52:51 pm
Oh, you must have misunderstood me. I mean a command that lets you select the color, not have a set color.
3  Scripting / Script Help / Re: So I'm working on a code to change vehicle color but line 8 keeps having issues. on: June 12, 2013, 05:40:32 pm
Well I managed to make it change to black and nothing more, should I use what mido_pop said and put the 255 in the first 0?
4  Scripting / Script Help / Re: So I'm working on a code to change vehicle color but line 8 keeps having issues. on: June 09, 2013, 01:20:18 am
yes, each of them.
Alright, thanks.
I apologize in advance if I somehow mess this up while fixing.
5  Scripting / Script Help / Re: So I'm working on a code to change vehicle color but line 8 keeps having issues. on: June 09, 2013, 12:31:23 am
I did read the entire post, I know how the RGB scale works and such.

So I should take and replace "Co" with an integer?
6  Scripting / Script Help / Re: So I'm working on a code to change vehicle color but line 8 keeps having issues. on: June 09, 2013, 12:08:56 am
Please, post on the forum instead of PMing members. Also, Co is not defined, and has no sense.

In the Colour( ) function, you pass bytes ( in our case, integers ). Which range from 0 to 255, according to RGB Format ( red,green,blue ), each of the integers representing the intensity of the colour, 255,255,255 would be white, 0,0,0 would be black, 255,0,0 red, and so on.
I didn't PM anyone, he randomly PM'd it to me.
Anyways, so what is it that I'm missing?

Also I think I should probably stop listening to Pop considering that he doesn't ever tell me what I did wrong and he gave me that bad string.
7  Scripting / Script Help / So I'm working on a code to change vehicle color but line 8 keeps having issues. on: June 08, 2013, 11:52:44 pm
Code: [Select]
player.Vehicle.RGBColour1 = Colour( Co, Co, Co );
That is the line, anyone see a issue in it? I'm using the line I got from Pop.
8  Scripting / Script Help / Re: Armour restore script on: June 08, 2013, 09:57:53 pm
Yes, it should've worked the whole time.
o
Oh wow, I feel dumb now.
Alright guys, thanks for the help. I'll be sure to note down that things are case sensitive
9  Scripting / Script Help / Re: Armour restore script on: June 07, 2013, 09:26:24 pm
Well, I see in your first example that you capitalized the "A" in the word "Armour". Because of this, the player would be required to enter /Armour exactly (with the capital A).

Here's a suggestion. Use the following snippet to allow case-insensitive commands:
Code: [Select]
if( cmd.tolower() == "armour" )Just be sure to make the command string that you are checking for is lowercase when you script it. ( Referring to the "armour" part ).

I'm not sure if this is your problem, but I hope this helps!
Alright, thanks. I hadn't known that commands were so case sensitive.
So the entire time the command actually worked?
10  Scripting / Script Help / Re: Armour restore script on: June 05, 2013, 10:27:13 pm
Can someone tell me what I did wrong?
11  Scripting / Script Help / Re: Armour restore script on: June 05, 2013, 08:45:03 pm
Can you please tell me what I did wrong so I don't do it again?
12  Scripting / Script Help / Re: Armour restore script on: June 05, 2013, 08:37:19 pm
Yea, looking back the only difference is the spaces and the '<' was replaced by !=
Correct?
13  Scripting / Script Help / Re: Armour restore script on: June 05, 2013, 08:32:39 pm
Yes, that worked. Thanks man.

So basically my issue was "<" should have been "!=" ?
14  Scripting / Script Help / Re: Armour restore script on: June 05, 2013, 08:06:32 pm
Strange, let me see if the script file is loading it.

Code: [Select]
<script file="armour.nut" client="0"/>Thats what is in the script.xml, I made sure the script is called "armour.nut" as well.
15  Scripting / Script Help / Re: Armour restore script on: June 05, 2013, 08:03:38 pm
Still not working for some reason.
Pages: [1] 2
© Liberty Unleashed Team.