Unknown Command. - 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: Unknown Command. (
/showthread.php?tid=579485)
Unknown Command. -
Glossy42O - 27.06.2015
Hello lads,
I'm having trouble with my Anti Cheat.
I made a test command using ZCMD. When i connect to my Test Server i receive "Unknown command". My ZCMD is updated as-well.
PHP код:
CMD:guntest(playerid, params[])
{
GivePlayerWeapon(playerid, 24, 200);
return 1;
}
CMD:gunntest(playerid, params[])
{
ServerWeapon(playerid, 24, 200);
return 1;
}
Re: Unknown Command. -
NeamPojma - 27.06.2015
You need to convert all commands to ZCMD
Also #include <zcmd> on top of your script.
Re: Unknown Command. -
hamzajaved780 - 27.06.2015
Show us your OnPlayerCommandText
Re: Unknown Command. -
Glossy42O - 27.06.2015
I only have two commands, and i don't have OnPlayerCommandText
Re: Unknown Command. -
SpikeSpigel - 27.06.2015
First of all. You need to have all the commands conveted to ZCMD.
Next : Modify that:
Код:
CMD:guntest(playerid, params[])
{
GivePlayerWeapon(playerid, 24, 200);
return 1;
}
CMD:gunntest(playerid, params[])
{
ServerWeapon(playerid, 24, 200);
return 1;
}
With that
Код:
CMD:guntest(playerid)
{
GivePlayerWeapon(playerid, 24, 200);
return 1;
}
CMD:gunntest(playerid)
{
ServerWeapon(playerid, 24, 200);
return 1;
}
Re: Unknown Command. -
Glossy42O - 27.06.2015
Same
Re: Unknown Command. -
SpikeSpigel - 27.06.2015
Hmm-.. which of these two commands are you using on your server ? /guntest or /gunntest ?
Re: Unknown Command. -
Glossy42O - 27.06.2015
Both, i'm testing my anti weapon hack.
Re: Unknown Command. -
Alex Magaсa - 27.06.2015
Silly question did you added "streamer" to run with your server? Because i know some commands requires streamer.
Define on top:
Код:
#include <a_samp>
#include <streamer>
#include <zcmd>
#pragma tabsize 0
and then re-compile your gamemode/filterscript.
Then go to server.cfg and add
plugins streamer (...)
Respuesta: Re: Unknown Command. -
[DOG]irinel1996 - 27.06.2015
Quote:
Originally Posted by SpikeSpigel
First of all. You need to have all the commands conveted to ZCMD.
Next : Modify that:
With that
|
ZCMD has
params[]
From what I see, I think that your gamemode has any script error or something which makes ZCMD fail. Try using ZCMD in a clean gamemode to see what happens.