Why is this not working?.
#1

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.
Reply
#2

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.
Reply
#3

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"
Reply
#4

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.
Reply
#5

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.
Reply
#6

Use cmd don't use it under any publuc function and remove onplayercmdtxt
Reply
#7

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.
Reply
#8

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;
}
Reply
#9

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.
Reply
#10

k i will
edit : sorry for late but i have fixed your problems
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)