Show Posts
|
Pages: [1] 2
|
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.
|
|
|
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:
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?
|
|
|
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.
<script file="armour.nut" client="0"/> Thats what is in the script.xml, I made sure the script is called "armour.nut" as well.
|
|
|
|