Help! :D
#6

Quote:
Originally Posted by iggy1
Посмотреть сообщение
I know its just what i'm used to i should have used params only with strlen check.
Like this
pawn Код:
COMMAND:ask(playerid,params[])
{
    if(!strlen(params))return SendClientMessage(playerid,0xff0000ffFF,"Error: Usage /ask [message]");
    {
        for(new i; i < MAX_PLAYERS;i++)
        {
            if(!IsPlayerConnected(i) || !IsPlayerAdmin(i))continue;
            else
            {
                format(params,128,"(%d)%s asks: %s?",playerid,playername(playerid),params);
                SendClientMessage(i,0x00ff00AA,str);
            }
        }
    }
    return 1;
}
Wrong.
Or... It would work, but isnull is more efficient than strlen.

This forum requires that you wait 120 seconds between posts. Please try again in 80 seconds.
Reply


Messages In This Thread
Help! :D - by [MKD]Max - 08.10.2010, 08:11
Re: Help! :D - by [MKD]Max - 08.10.2010, 08:19
Re: Help! :D - by iggy1 - 08.10.2010, 08:23
Re: Help! :D - by Rachael - 08.10.2010, 08:32
Re: Help! :D - by iggy1 - 08.10.2010, 08:33
Re: Help! :D - by LarzI - 08.10.2010, 08:44
Re: Help! :D - by [MKD]Max - 08.10.2010, 08:45
Re: Help! :D - by iggy1 - 08.10.2010, 08:50
Re: Help! :D - by Lenny the Cup - 08.10.2010, 08:54
Re: Help! :D - by LarzI - 08.10.2010, 11:08

Forum Jump:


Users browsing this thread: 4 Guest(s)