Why is this not working?. -
QatarKnight - 21.07.2013
My friend did something to this filterscript and when i try to use it. It doesn't work i compiled it and put it in my filterscript's file and then put it in server.cfg. And it also says Minigame.amx loaded but when i try to use any command it tells me that command doesn't exist and i have zcmd.inc if that's what your going to tell me.
Here's the link:
http://pastebin.com/X13ub9Tu
I'am not claiming this is mine or anything.
Re: Why is this not working?. -
Lordzy - 21.07.2013
Quote:
Originally Posted by QatarKnight
My friend did something to this filterscript and when i try to use it. It doesn't work i compiled it and put it in my filterscript's file and then put it in server.cfg. And it also says Minigame.amx loaded but when i try to use any command it tells me that command doesn't exist and i have zcmd.inc if that's what your going to tell me.
Here's the link: http://pastebin.com/X13ub9Tu
I'am not claiming this is mine or anything.
|
Seems like the callback 'OnPlayerCommandText' is conflicting with 'OnPlayerCommandReceived' on your script. Either combine all commands to zcmd or remove the OnPlayerCommandReceived callback and set the "/leavedm" command for OnPlayerCommandText itself. I don't know if the problem is because the command is being called on zcmd's callback or you may try creating commands like "CMD:your_command_here". I've tested it after removing the zcmd callbacks as I doubted whether it's conflicting and it worked then.
Re: Why is this not working?. -
QatarKnight - 21.07.2013
Quote:
Originally Posted by Lordz™
Seems like the callback 'OnPlayerCommandText' is conflicting with 'OnPlayerCommandReceived' on your script. Either combine all commands to zcmd or remove the OnPlayerCommandReceived callback and set the "/leavedm" command for OnPlayerCommandText itself. I don't know if the problem is because the command is being called on zcmd's callback or you may try creating commands like "CMD:your_command_here". I've tested it after removing the zcmd callbacks as I doubted whether it's conflicting and it worked then.
|
I changed /leavedm to OnPlayerCommandText but now when i compile it gives me:
C:\Users\New\Desktop\Current Server2\FunGaming Stunt-Freeroam\filterscripts\Minigame.pwn(2574) : error 021: symbol already defined: "zcmd_OnPlayerCommandText"
Re: Why is this not working?. -
Lordzy - 21.07.2013
Quote:
Originally Posted by QatarKnight
I changed /leavedm to OnPlayerCommandText but now when i compile it gives me:
C:\Users\New\Desktop\Current Server2\FunGaming Stunt-Freeroam\filterscripts\Minigame.pwn(2574) : error 021: symbol already defined: "zcmd_OnPlayerCommandText"
|
You must remove the zcmd callbacks too. Also, no problems if you remove zcmd include from that script. However I prefer zcmd way of commanding as it's much accurate.
Re: Why is this not working?. -
QatarKnight - 21.07.2013
Quote:
Originally Posted by Lordz™
You must remove the zcmd callbacks too. Also, no problems if you remove zcmd include from that script. However I prefer zcmd way of commanding as it's much accurate.
|
Is there a way i can keep zcmd?. But if it's too complex and hard to do i'll settle with no zcmd.
Re: Why is this not working?. -
PrinceKumar - 21.07.2013
Use cmd don't use it under any publuc function and remove onplayercmdtxt
Re: Why is this not working?. -
QatarKnight - 21.07.2013
Quote:
Originally Posted by PrinceKumar
Use cmd don't use it under any publuc function and remove onplayercmdtxt
|
Can you give me an example cause i don't know anything about this.
Re: Why is this not working?. -
PrinceKumar - 21.07.2013
Like if u r using zcmd and using ur
public OnPlayerCommandText
{
CMD:example
}
so don't use these cmd under these type of public function , use it seperatly for example not under any public function. Use it like ..
pawn Код:
Public OnGameModeInIt()
{
return 1;
}
CMD:example
{
// here your codes
return 1;
}
public OnGameModeExit()
{
return 1;
}
Re: Why is this not working?. -
QatarKnight - 21.07.2013
Quote:
Originally Posted by PrinceKumar
Like if u r using zcmd and using ur
public OnPlayerCommandText
{
CMD:example
}
so don't use these cmd under these type of public function , use it seperatly for example not under any public function. Use it like ..
pawn Код:
Public OnGameModeInIt() { return 1; } CMD:example { // here your codes return 1; } public OnGameModeExit() { return 1; }
|
Can you do it for me and put it in pastebin?. I'll be very grateful if you do.
Re: Why is this not working?. -
PrinceKumar - 21.07.2013
k i will
edit : sorry for late but i have fixed your problems