Author Topic: My script will not work.  (Read 1398 times)

I was working on a script, and it was working fine whenever i tested it. But now whenever i type /help nothing happens. I have looked through my script multiple times and found a few errors, but it still won't work. Any help with this?
Code: [Select]
//SRPGhelp
function serverCmdHelp(%client)
     {
messageClient(%client,'','\c6<color:00ff00>HELP');
         messageClient(%client,'','\c6So you need some help eh?');
messageClient(%client,'','\c6Type one of these commands for help.');
messageClient(%client,'','\c6/helpresources will tell you about resources.');
messageClient(%client,'','\c6/helplocations will list a few of the main towns.');
messageClient(%client,'','\c6/helpquests will tell where to go if you want to know about quests.');
messageClient(%client,'','\c6/morehelp will tell you how to get more information.');
}

function serverCmdhelpresources(%client)
    {
messageClient(%client,'','\c6<color:00ff00>RESOURCES');
messageClient(%client,'','\c6So you need help with basic resources eh?.');
messageClient(%client,'','\c6Type /helpbasics to learn a bit about the basics.');
messageClient(%client,'','\c6Type /helpminerals to learn a bit about mineral resources.');
messageClient(%client,'','\c6Type /helplumber to learn a bit about the various types of lumber in the SteemzRPG world.');
messageClient(%client,'','\c6Tpe /helpplants to learn about some of the basic flowers and other plants.');
messageClient(%client,'','\c6Type /helpfish to learn about some of the various types of fish living in the SteemzRPG world.');
}

function serverCmdhelplocations(%client)
    {
messageClient(%client,'','\c6<color:00ff00>LOCATIONS');
messageClient(%client,'','\c6To learn a bit about Spertown type /SpertownGuide.');
messageClient(%client,'','\c6To learn a bit about Sper Forest type /SperforestGuide.');
}

function serverCmdhelpquests(%client)
    {
messageClient(%client,'','\c6<color:00ff00>QUESTS');
messageClient(%client,'','\c6If you want to learn about quests go to the man who is standing by the signpost in Sper town.');
}

function serverCmdmorehelp(%client)
    {
messageClient(%client,'','\c6<color:ff00ff>MORE HELP');
messageClient(%client,'','\c6To get more help you can use the help GUI, which contains all the stuff included here, images and extra commands.');
messageClient(%client,'','\c6Also you can ask other players, or read books you find in houses.');

//Resources
//minerals

datablock fxDTSBrickData (brickSlateData)
{
brickFile = Add-ons/Script_SRPG/2x3f.blb";
category = "SteemzRPG";
subCategory = "Resources";
uiName = "Slate";
iconName = "base/client/ui/brickicons/2x3f";
};
« Last Edit: September 11, 2009, 11:42:43 AM by Steemer »

Code: [Select]
Loading Add-On: Script_SRPG (CRC:-2089624655)
Executing Add-Ons/Script_SRPG/server.cs.
Missing file: Add-Ons/Script_SRPG/Script_resources.cs!
0 datablocks added.
Where are you placing your code? It's only attempting to run a "resources" part of the mod... which doesn't exist.

Also, you have a million broken and badly installed Add-Ons.

i put my code in the zip with the server.cs and the other stuff.
The script above is resources.cs

i put my code in the zip with the server.cs and the other stuff.
The script above is Script_resources.cs


Quote
Also, you have a million broken and badly installed Add-Ons.
My friend gave me his add ons but i never got around to cleaning it out.

EDIT:Double Toast
« Last Edit: September 10, 2009, 01:54:34 PM by Steemer »

Your file is called "resources.cs". It is attempting to run "Script_resources.cs".

I forgot to say, it is called Script_resources.cs.
Edited my above post.
Why do i forget stuff like that?

Also '\c6<color:00ff00>RESOURCES' ?

Also '\c6<color:00ff00>RESOURCES' ?
What is wrong with that?
It is exactly the same as the others.

Basically your saying <color:ffffff>  then <color:00ff00>

ohh, thats what the c6 is, but it used to work even with that.
EDIT: or is that the problem?
EDIT:2, should i change it to c2 then?
« Last Edit: September 15, 2009, 10:29:21 AM by Steemer »


Its not the colors thats your problem, its that your package your script wrong =\

Towards the end...
Code: (Torque) [Select]
function serverCmdmorehelp(%client)
    {
messageClient(%client,'','\c6<color:ff00ff>MORE HELP');
messageClient(%client,'','\c6To get more help you can use the help GUI, which contains all the stuff included here, images and extra commands.');
messageClient(%client,'','\c6Also you can ask other players, or read books you find in houses.');

//Resources
//minerals

datablock fxDTSBrickData (brickSlateData)
{
brickFile = Add-ons/Script_SRPG/2x3f.blb";
category = "SteemzRPG";
subCategory = "Resources";
uiName = "Slate";
iconName = "base/client/ui/brickicons/2x3f";
};
EEK! Missing }
Place a } before //Resources

Ah, did not see that thar.