dcmd_sus(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(IstPolizist(playerid))
{
//------------------------------------------------------------
new pID;
new pstring[256];
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name, sizeof(name));
//------------------------------------------------------------
if (sscanf(params, "us", pID, pstring)) return SendClientMessage(playerid,WEIß,"Benutzung: /sus [playerid] [Grund].");
//--------------------------------------------
new name2[25];
GetPlayerName(pID, name2, sizeof(name2));
//--------------------------------------------
new textstring[256];
format(textstring, sizeof(textstring), "%s hat %s ein Wanted gegeben. [%s]", name, name2,pstring);
PolizeiNachricht(1, BLAU, textstring);
//-------------------------------------------------------------------------------------------------------
new textstring2[256];
format(textstring2, sizeof(textstring2), "Du hast ein Wanted wegen %s von Beamter %s bekommen.", pstring, name);
SendClientMessage(playerid, BLAU, textstring2);
}
}
return 1;
}
Bekomme einen Warning: Loose indentation warum?
Mf.G.
Division