FAST HELP ME! +1
#1

I'm have a problem:
Код:
warning 202: number of arguments does not match definition
In line:
Код:
SendClientMessage(ID, COLOR_YELLOW, "Admin %s[%d] ti-a dat ban pentru %s zile. (Motiv: %s)", name, playerid, zi, reason);
Reply
#2

You can't format strings with SendClientMessage, it supports just three arguments: the ID of the player, the color and the message itself.

Use format instead:
PHP код:
new string[128];
format(stringsizeof(string), "Admin %s[%d] ti-a dat ban pentru %s zile. (Motiv: %s)"nameplayeridzireason);
SendClientMessage(IDCOLOR_YELLOWstring); 
Reply
#3

Quote:
Originally Posted by RIDE2DAY
Посмотреть сообщение
You can't format strings with SendClientMessage, it supports just three arguments: the ID of the player, the color and the message itself.

Use format instead:
PHP код:
new string[128];
format(stringsizeof(string), "Admin %s[%d] ti-a dat ban pentru %s zile. (Motiv: %s)"nameplayeridzireason);
SendClientMessage(IDCOLOR_YELLOWstring); 
Thanks!
I give you +1!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)