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=453027)
Unknown command;/ -
Jernu - 23.07.2013
Some of my commands return Unknown Command and they're scripted properly.
I've re-written them 5 times, taken caution each time and for some reason it keeps saying Unknown Command.
Ex:
pawn Код:
CMD:jobquit(playerid, params[])
{
if(PlayerInfo[playerid][pJob] == 0)
{
SendClientMessage(playerid, COLOR_RED, "|- Error: You don't have a job to quit! -|");
}
else
{
PlayerInfo[playerid][pJob] = 0;
SendClientMessage(playerid, COLOR_GREEN, "|- Success: You are now unemployed! -|");
}
return 1;
}
Re: Unknown command;/ -
iggy1 - 23.07.2013
Do all of your commands from that particular script return "Unknown command"?
Have you removed
OnPlayerCommandText?
Re: Unknown command;/ -
Jernu - 23.07.2013
Quote:
Originally Posted by iggy1
Do all of your commands from that particular script return "Unknown command"?
Have you removed OnPlayerCommandText?
|
Most, not all.
And yeah I've removed that.
Re: Unknown command;/ -
iggy1 - 23.07.2013
It's kinda hard to help you because all you have posted is 1 command that is written fine, the problem isn't that command.
EDIT: If it's not a very large script, I can have a look if you send it me.
Re: Unknown command;/ -
Jernu - 23.07.2013
Any idea what the problem is? Or even, can you help me over Skype?
Re: Unknown command;/ -
Jernu - 23.07.2013
Anyone?
Re: Unknown command;/ -
ThePhenix - 23.07.2013
Do you have something here like returning 0?
PHP код:
OnPlayerCommandPerformed(playerid, cmdtext[], success)
Re: Unknown command;/ -
Jernu - 23.07.2013
I don't have that in the script.
Re: Unknown command;/ -
Jernu - 23.07.2013
Anyone please?
pawn Код:
CMD:teleport(playerid, params[])
{
SetPlayerPos(..);
return 1;
}
Even that command returns Unknown command.
Re: Unknown command;/ -
Djole1337 - 23.07.2013
That usually happens when you mix dcmd / strcmp and zcmd.