unknown cmd
#1

Код:
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.
Reply
#2

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

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

hello?
Reply
#5

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

gsh 4 of my questions ignored in a row =(
Reply
#7

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

i had a problem with a checkpoint no response till date
Reply
#9

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


Forum Jump:


Users browsing this thread: 1 Guest(s)