Command help
#8

Quote:
Originally Posted by Markx
Посмотреть сообщение
pawn Код:
command(kill, playerid, params[])
{
    new id;
    if (sscanf(params,[b]"u"[/b], id))
    {
        return SendClientMessage(playerid, -1, "* USAGE: /kill [Nick/ID]");
    }
    SetPlayerHealth(id, -1);
    return 1;
}
'r' doesnt exist in sscanf... use 'u'
Код:
Specifier(s)			Name				Example values
	i, d			Integer				1, 42, -10
	c			Character			a, o, *
	l			Logical				true, false
	b			Binary				01001, 0b1100
	h, x			Hex				1A, 0x23
	o			Octal				045 12
	n			Number				42, 0b010, 0xAC, 045
	f			Float				0.7, -99.5
	g			IEEE Float			0.7, -99.5, INFINITY, -INFINITY, NAN, NAN_E
	u			User name/id (bots and players)	******, 0
	q			Bot name/id			ShopBot, 27
	r			Player name/id			******, 42
It actually does exist. I totally forgot about sscanf for this
And thanks again btw
Reply


Messages In This Thread
Command help - by Wesley221 - 27.06.2011, 18:00
Re: Command help - by Raimis_R - 27.06.2011, 18:04
Re: Command help - by Wesley221 - 27.06.2011, 18:18
Re: Command help - by Raimis_R - 27.06.2011, 18:28
Re: Command help - by Wesley221 - 27.06.2011, 18:29
Re: Command help - by Raimis_R - 27.06.2011, 18:47
Re: Command help - by Markx - 27.06.2011, 18:54
Re: Command help - by Wesley221 - 27.06.2011, 18:58

Forum Jump:


Users browsing this thread: 1 Guest(s)