line(14174) : warning 202: number of arguments does not match definition line(14174) : warning 202: number of arguments does not match definition
SendClientMessageToAll(WHITE, "{FF3399}[NEWS] Reporter %s: %s", RemoveUnderScore(playerid), message);
command(news, playerid, params[])
{
new message[128];
if(Groups[Player[playerid][Group]][CommandTypes] == 5)
{
SendClientMessageToAll(WHITE, "{FF3399}[NEWS] Reporter %s: %s", RemoveUnderScore(playerid), message);
}
return 1;
}
SendClientMessageToAll(WHITE, "[NEWS] Reporter %s: %s"), RemoveUnderScore(playerid), message;
Not tested but should work EDIT: LOL You edited your posted as i posted mey post. |
(14174) : warning 215: expression has no effect
SendClientMessageToAll(WHITE, "[NEWS] Reporter %s: %s"), RemoveUnderScore(playerid), message;
:'). I am compiling with yours now
![]() Код:
(14174) : warning 215: expression has no effect pawn Код:
|
command(news, playerid, params[]) { new message[128]; if(Groups[Player[playerid][Group]][CommandTypes] == 5) { format(message,sizeof(message),"{FF3399}[NEWS] Reporter %s: {FF3399}%s", RemoveUnderScore(playerid), message); SendClientMessageToAll(WHITE,message); } return 1; }
Yes you can have a Cuppa and that means
expression has no effect The result of the expression is apparently not stored in a variable or used in a test. The expression or expression statement is therefore redundant. |
Код:
command(news, playerid, params[]) { new message[128]; if(Groups[Player[playerid][Group]][CommandTypes] == 5) { format(message,sizeof(message),"{FF3399}[NEWS] Reporter %s: {FF3399}%s", RemoveUnderScore(playerid), message); SendClientMessageToAll(WHITE,message); } return 1; } |
Oh yeah you wernt sending the message in a string:S Bice one Babul
|
command(news, playerid, params[]) { new message[128]; if(Groups[Player[playerid][Group]][CommandTypes] == 5) { format(message,sizeof(message),"{FF3399}[NEWS] Reporter %s: {FF3399}%s", RemoveUnderScore(playerid), params); SendClientMessageToAll(WHITE,message); } return 1; }