Another Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Another Problem (
/showthread.php?tid=630503)
Another Problem -
Xaad - 15.03.2017
Hi guys
i use grandlarceny and i am looking for some filterscripts.
ok i got one now i have got its pwn now i compiled no errors copied and pasted in filterscripts
server.cfg opened and typed the name there and now in game
"Unknown Command"
what the f is this?
need help
Re: Another Problem -
ProBro - 15.03.2017
no errors? do you get warnings?
Re: Another Problem -
Flamehaze7 - 15.03.2017
Quote:
Originally Posted by Xaad
Hi guys
i use grandlarceny and i am looking for some filterscripts.
ok i got one now i have got its pwn now i compiled no errors copied and pasted in filterscripts
server.cfg opened and typed the name there and now in game
"Unknown Command"
what the f is this?
need help
|
This problem is caused because one of the script has ZCMD and the other one uses strcmp, you can't use two command processors together
Re: Another Problem -
Xaad - 15.03.2017
No warning i said
Re: Another Problem -
Xaad - 15.03.2017
Quote:
Originally Posted by Flamehaze7
This problem is caused because one of the script has ZCMD and the other one uses strcmp, you can't use two command processors together
|
so how to use only one i mean how to delete strcmp?
Re: Another Problem -
SyS - 15.03.2017
anything on server log?
Re: Another Problem -
Flamehaze7 - 15.03.2017
Quote:
Originally Posted by Xaad
so how to use only one i mean how to delete strcmp?
|
include <zcmd> on your script and then switch your commands to ZCMD
example:
Код:
if(strcmp("/hello",cmdtext, true) == 0)
{
//
return 1;
}
it becames
Код:
CMD: hello(playerid,params[])
{
//
return 1;
}
Re: Another Problem -
Xaad - 15.03.2017
Quote:
Originally Posted by Sreyas
anything on server log?
|
Nope
Re: Another Problem -
Xaad - 15.03.2017
Thank You Flamehaze fixed =)