PDA

View Full Version : (34255) : warning 202: number of arguments does not match definition


ChristianIvann09
09/03/2014, 04:32 PM
Line 34255: SendClientMessage(playerid, COLOR_LIGHTRED, "You have been banned by %s Reason: %s", GetPlayerNameEx(playerid), reason);

Tagathron
09/03/2014, 04:34 PM
You have 4 arguments, but only 3 are needed.
SendClientMessage(playerid, COLOR, MESSAGE);
First format a message, then display it in SendClientMessage();

new message[128];
format(message, sizeof(message), "You have been banned by %s Reason: %s", GetPlayerNameEx(playerid), reason);
SendClientMessage(playerid, COLOR_LIGHTRED, message);

Clad
09/03/2014, 04:35 PM
format(message, sizeof(message), "You have been banned by %s Reason: %s", GetPlayerNameEx(playerid), reason);
SendClientMessage(playerid, COLOR_LIGHTRED, message);
Here you go

Matess
09/03/2014, 04:36 PM
Try

new str[64];
format(str,sizeof(str), "You have been banned by %s Reason: %s", GetPlayerNameEx(playerid), reason);
SendClientMessage(playerid, COLOR_LIGHTRED, str);

ChristianIvann09
09/03/2014, 04:39 PM
You have 4 arguments, but only 3 are needed.
SendClientMessage(playerid, COLOR, MESSAGE);
First format a message, then display it in SendClientMessage();

new message[128];
format(message, sizeof(message), "You have been banned by %s Reason: %s", GetPlayerNameEx(playerid), reason);
SendClientMessage(playerid, COLOR_LIGHTRED, message);


What is arguments?

Matess
09/03/2014, 04:40 PM
SendClientMessage(first argument, second argument, third argument);

ChristianIvann09
09/03/2014, 04:45 PM
You have 4 arguments, but only 3 are needed.
SendClientMessage(playerid, COLOR, MESSAGE);
First format a message, then display it in SendClientMessage();

new message[128];
format(message, sizeof(message), "You have been banned by %s Reason: %s", GetPlayerNameEx(playerid), reason);
SendClientMessage(playerid, COLOR_LIGHTRED, message);


+rep