(34255) : warning 202: number of arguments does not match definition
#1

Код:
  
Line 34255: SendClientMessage(playerid, COLOR_LIGHTRED, "You have been banned by %s Reason: %s", GetPlayerNameEx(playerid), reason);
Reply
#2

You have 4 arguments, but only 3 are needed.
SendClientMessage(playerid, COLOR, MESSAGE);
First format a message, then display it in SendClientMessage();
pawn Код:
new message[128];
format(message, sizeof(message), "You have been banned by %s Reason: %s", GetPlayerNameEx(playerid), reason);
SendClientMessage(playerid, COLOR_LIGHTRED, message);
Reply
#3

PHP код:
format(messagesizeof(message), "You have been banned by %s Reason: %s"GetPlayerNameEx(playerid), reason);
SendClientMessage(playeridCOLOR_LIGHTREDmessage); 
Here you go
Reply
#4

Try
Код:
new str[64];
format(str,sizeof(str), "You have been banned by %s Reason: %s", GetPlayerNameEx(playerid), reason);
SendClientMessage(playerid, COLOR_LIGHTRED, str);
Reply
#5

Quote:
Originally Posted by Tagathron
Посмотреть сообщение
You have 4 arguments, but only 3 are needed.
SendClientMessage(playerid, COLOR, MESSAGE);
First format a message, then display it in SendClientMessage();
pawn Код:
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?
Reply
#6

SendClientMessage(first argument, second argument, third argument);
Reply
#7

Quote:
Originally Posted by Tagathron
Посмотреть сообщение
You have 4 arguments, but only 3 are needed.
SendClientMessage(playerid, COLOR, MESSAGE);
First format a message, then display it in SendClientMessage();
pawn Код:
new message[128];
format(message, sizeof(message), "You have been banned by %s Reason: %s", GetPlayerNameEx(playerid), reason);
SendClientMessage(playerid, COLOR_LIGHTRED, message);
+rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)