03.05.2015, 14:21
Код:
CMD:admins(playerid) { if(HaveAdminsOnline()) { SendClientMessage(playerid,informacao,"Admin(s) Online:"); new adm[15];//ad[45]; for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(Player[i][admin] != 0) { switch(Player[i][admin]) { case 1: adm = "Novato"; case 2: adm = "Intermediario"; case 3: adm = "Veterano"; case 10: adm = "Master"; case 11: adm = "Dono RCON"; } //format(ad,sizeof ad,"[T.K]~ %s [%s]",GetName(i),adm); //SendClientMessage(playerid,marrom,ad); ShowPlayerDialog(playerid, DIALOG_ADMINSON, DIALOG_STYLE_MSGBOX, "[ADMIN]:\n", "[ADMIN]~ %s [%s]", "OK", "",GetName(i),adm); } } } } else SendClientMessage(playerid,informacao,"Nгo hб admins online!"); return 1; }
Код:
warning 202: number of arguments does not match definition
Код:
//format(ad,sizeof ad,"[ADMIN]~ %s [%s]",GetName(i),adm); //SendClientMessage(playerid,marrom,ad);