SendClientMessageToAdminsEx
#1

i have this code:

Код:
SendClientMessageToAdminsEx(COLOR_DEEPSKYBLUE,"Admin %s(%d) used records.,PlayerName(playerid),playerid,PlayerData[playerid][Adminlevel]);

stock SendClientMessageToAdminsEx(colour,format[],va_args<>){
    new out[128];
    va_format(out,sizeof(out),format,va_start<3>);
 	foreach(Player,i){
	 	if(IsPlayerConnected(i)){
		 	if(PlayerData[i][Adminlevel]>=1)SendClientMessage(i,colour,out);}}
	return 1;}
but when i use it i saw this:

Код:
Admin 7(87) used records.
plz help me.
Reply
#2

You are passing 3 parameters (string, integer, integer) and only have %s, %d. You are missing one %d for admin level.

Also, you are not closing quotation marks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)