SA-MP Forums Archive
unknown cmd - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: unknown cmd (/showthread.php?tid=232816)



unknown cmd - THE_KNOWN - 28.02.2011

Код:
CMD:addstore(playerid,params[])
{
	new cid,id,inter,Float:x,Float:y,Float:z;
	if(admin[playerid]!=4) return SendClientMessage(playerid,red,"You cannot use this command.");
	if(sscanf(params,"i",id)) return SendClientMessage(playerid,red,"USAGE:/addstore [id]");
	inter=GetPlayerInterior(playerid);
	GetPlayerPos(playerid,x,y,z);
	cid=CreateDynamicCP(x,y,z,1.0,-1,-1,-1,10);
	sshops[cid]=id;
	return 1;
}
everything seems fine except it says unknown cmd ig but stil makes the cp :S. also the cp doesnt respond.


Re: unknown cmd - maramizo - 28.02.2011

Remove your public OnPlayerCommandText.
BTW some filterscript might be interfering with your command.


Re: unknown cmd - THE_KNOWN - 28.02.2011

i did that long ago :S. i have abt 20+ zcmds. i dont use filterscripts


Re: unknown cmd - THE_KNOWN - 28.02.2011

hello?


Re: unknown cmd - Mike Garber - 28.02.2011

I have the same problem with one of my commands that creates a vehicle, it creates the vehicle but doesn't do none of the other things in the command, (not even SendClientMessage), and still says Unknown Command.


Re: unknown cmd - THE_KNOWN - 28.02.2011

gsh 4 of my questions ignored in a row =(


Re: unknown cmd - Mike Garber - 28.02.2011

Quote:
Originally Posted by THE_KNOWN
Посмотреть сообщение
gsh 4 of my questions ignored in a row =(
I would answer If i could but I can't, I'm trying to figure it out myself.


Re: unknown cmd - THE_KNOWN - 28.02.2011

i had a problem with a checkpoint no response till date


Re: unknown cmd - THE_KNOWN - 01.03.2011

mike idk what i did but my code works now. post your code here do maybe i can help you out