Einen Fehler hab ich noch.
Code: ocmd:acp(playerid,params[])
{
if(!isPlayerAnAdmin(playerid,5)) return SendClientMessage(playerid,ROT,"Zugriff Verweigert");
new pID;
if(sscanf(params,"u",pID))return SendClientMessage(playerid,-1,"/acp [playerid]");
if(!IsPlayerConnected(pID))return SendClientMessage(playerid,ROT,"Spieler ist nicht Online");
new string[256];
format(string, sizeof(string), "Name: %s\n",SpielerName(pID));
format(string, sizeof(string), "Sanktionen:\n");
format(string, sizeof(string), "%sTimebans: %d\n",string,GetPVarInt(playerid,"Banned1"));
format(string, sizeof(string), "%sKicks: %d\n",string,GetPVarInt(playerid,"Banned2"));
format(string, sizeof(string), "Sonstiges: \n");
format(string, sizeof(string), "");
return ShowPlayerDialog(playerid,DIALOG_ACP,DIALOG_STYLE_MSGBOX,"Admin Control Panel",string,"Ok","");
}
Error´s:
Es kommt Garnichts ingame auser /acp [playerid]