02.11.2013, 01:38
Hello everyone, as the title says I need help with my Command Script. I am using Pawno that came with the download of SAMP. I created a blank document and added the #define FILTERSCRIPT to tell the server what it is. Then I scrolled down to the public OnPlayerCommandText and began creating my commands. I have searched ****** several times, and by my eyes the code is correct 100%. But when entered in the game it says Server: Unknown Command.
Here is the funny part, the very first command in the list, is /test I have it set to print out "Everything is working, sir!". I did this as a test to see if the command script is working. It will print out the Everything is working and then on the next line also print out Server: Unknown Command. Naturally I assumed another FS was messing with it. So I removed all FS from the .cfg accept the commands one. I get the same result.
Here is the code for the entire FS created.
http://pastebin.com/Q3yNPJGB
And here is just the part the contains the commands.
http://pastebin.com/HAEpw7rh
I am not the greatest Java coder in the world. I will be the first to admit this, and while I am taking classes on it I am still learning. I need a little help is all. Thank you for your time and I hope to here from you soon.
-
0Z3ro0
Here is the funny part, the very first command in the list, is /test I have it set to print out "Everything is working, sir!". I did this as a test to see if the command script is working. It will print out the Everything is working and then on the next line also print out Server: Unknown Command. Naturally I assumed another FS was messing with it. So I removed all FS from the .cfg accept the commands one. I get the same result.
Here is the code for the entire FS created.
http://pastebin.com/Q3yNPJGB
And here is just the part the contains the commands.
http://pastebin.com/HAEpw7rh
I am not the greatest Java coder in the world. I will be the first to admit this, and while I am taking classes on it I am still learning. I need a little help is all. Thank you for your time and I hope to here from you soon.
-
0Z3ro0



