Hi
Was ist hier falsch?
´dcmd_hwban(playerid,params[])
{
new pID,Grund[128];
if(sscanf(params,"us",pID,Grund)) return SendClientMessage(playerid,0xFF0000FF,"FEHLER: /hwban [playerid/PartOfName] [Grund]");
if(!IsPlayerConnected(pID)) return SendClientMessage(playerid,0xFF0000FF,"Dieser Spieler ist nicht online!");
new pNamE[24];
GetPlayerName(pID,pNamE,24);
banplayerhdwid(pID,Grund);
format(Grund,128,"Du hast %s gebannt, Grund: %s",pNamE,Grund);
SendClientMessage(playerid,0xFF0000FF,Grund);
return 1;
}
forward banplayerhdwid(playerid,const grund[]);
public banplayerhdwid(playerid,const grund[])
{
new mysqlquery[128],string[255];
gpci(playerid,string,255);
GetPlayerName(playerid,mysqlquery,24);
format(mysqlquery,256,"INSERT INTO `bans` (`hdwid`,`reason`,`banned_player`) VALUES ('%s','%s','%s')",string,grund,mysqlquery);
mysql_query(mysqlquery);
new kmsg2[256];
format(kmsg2,256,"Du wurdest gebannt, Grund: %s",grund);
SendClientMessage(playerid,0xFF0000FF,kmsg2);
Kick(playerid);
mysql_free_result();
return 1;
}