07.07.2010, 07:40
I have 2 scripts, one (as mentioned in an earlier thread) is work (Truck Missions) and works perfectly with 1 simple OnPlayerCommandText(playerid, cmdtext[]) command. However, i have another script, called commands. This script has many OnPlayerCommandText commands, and if 1 script is loaded, and the other one loads, only the first scripts command will work (eg, if i load work, and then load commands, only the /work command will work)
I do not understand why this is. Is it because OnPlayerCommandText is already called in one script, and so the other script can use it?
WORK SCRIPT:
http://pawn.pastebin.com/vbviVER1
COMMANDS SCRIPT:
http://pawn.pastebin.com/jsUS5cc7
I would love for someone to have a look, like my last problem, is was only a simple little annoying thing![Sad](images/smilies/sad.gif)
I have a feeling its what i mentioned above, i hope to have the WORK script as a GameMode soon, and so i could merge the files together, and have just one OnPlayerCommandText command in those two files.
*NOTE: Both files compile and work in the server when tested on their own, but when put together, they fail, and only the first loaded works.
Thanks
Ash
I do not understand why this is. Is it because OnPlayerCommandText is already called in one script, and so the other script can use it?
WORK SCRIPT:
http://pawn.pastebin.com/vbviVER1
COMMANDS SCRIPT:
http://pawn.pastebin.com/jsUS5cc7
I would love for someone to have a look, like my last problem, is was only a simple little annoying thing
![Sad](images/smilies/sad.gif)
I have a feeling its what i mentioned above, i hope to have the WORK script as a GameMode soon, and so i could merge the files together, and have just one OnPlayerCommandText command in those two files.
*NOTE: Both files compile and work in the server when tested on their own, but when put together, they fail, and only the first loaded works.
Thanks
Ash