My script got crazy
#1

okey scripters
so Im starting to learn zcmd and sscanf
and I got this command
Код:
	COMMAND:b2(playerid, params[])
	{
		if(PlayerInfo[playerid][pAdminLevel] > 1)
		{
		    new id;
		    if(sscanf(params,"u",id))
			{
			    if(IsPlayerConnected(id))
			    {
			    	SendClientMessage(id, 0x0259EAAA, "hey");
			    	return 1;
			    }
			    else return SendClientMessage(playerid, 0x0259EAAA, "Player is not connected");
			}
			else return SendClientMessage(playerid, 0x0259EAAA, "USAGE: /b2 [PlayerId/PartOfName]");
		}
		else return SendClientMessage(playerid, 0x0259EAAA, "You are not admin");
	}
okey so when i use /b2 it doesnt return me SendClientMessage(playerid,blablablalbl)
it returns me SendClientMessage(id, 0x0259EAAA, "hey");
okey
and not only that it doesnt work
because of this stupid thing
all of the commands in my server arent working !
why ?
Reply


Messages In This Thread
My script got crazy - by bijoyekuza - 21.03.2011, 20:02
Re: My script got crazy - by xir - 21.03.2011, 20:07
Re: My script got crazy - by bijoyekuza - 21.03.2011, 20:10
Re: My script got crazy - by xir - 21.03.2011, 20:11
Re: My script got crazy - by bijoyekuza - 21.03.2011, 20:11
Re: My script got crazy - by xir - 21.03.2011, 20:13
Re: My script got crazy - by bijoyekuza - 21.03.2011, 20:14
Re: My script got crazy - by xir - 21.03.2011, 20:16
Re: My script got crazy - by -Rebel Son- - 21.03.2011, 22:47
Re: My script got crazy - by bijoyekuza - 22.03.2011, 05:07

Forum Jump:


Users browsing this thread: 1 Guest(s)