SA-MP Forums Archive
SendClientMessageToAdminsEx - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SendClientMessageToAdminsEx (/showthread.php?tid=604722)



SendClientMessageToAdminsEx - GeneralAref - 09.04.2016

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.


Respuesta: SendClientMessageToAdminsEx - Xabi - 09.04.2016

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.