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.