dcmd vs scanff vs strcmp ?
#8

pawn Код:
CMD:kill(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return 0;
    new ID;
    if(sscanf(params, "u", ID)) return /*error message*/
    /*Add filters, ifisplayerconnected, etc..*/
    SetPlayerHealth(ID, 0.0);
    return 1;
}
See how short they can be :P
Reply


Messages In This Thread
dcmd vs scanff vs strcmp ? - by gamer931215 - 16.08.2010, 22:26
Re: dcmd vs scanff vs strcmp ? - by Agent Smith - 16.08.2010, 22:37
Re: dcmd vs scanff vs strcmp ? - by gamer931215 - 16.08.2010, 22:38
Re: dcmd vs scanff vs strcmp ? - by vital2k - 16.08.2010, 22:38
Re: dcmd vs scanff vs strcmp ? - by gamer931215 - 16.08.2010, 22:40
Re: dcmd vs scanff vs strcmp ? - by Masj - 16.08.2010, 22:41
Re: dcmd vs scanff vs strcmp ? - by gamer931215 - 16.08.2010, 22:52
Re: dcmd vs scanff vs strcmp ? - by [L3th4l] - 16.08.2010, 22:55
Re: dcmd vs scanff vs strcmp ? - by gamer931215 - 16.08.2010, 23:01
Re: dcmd vs scanff vs strcmp ? - by gamer931215 - 16.08.2010, 23:29

Forum Jump:


Users browsing this thread: 2 Guest(s)