ocmd:f(playerid,params[])
{
new result[254];
if(sscanf(params,"s",result)) return SendClientMessage(playerid,COLOR_WHITE,"Benutze: /f [Text]");
{
new resultstring[128];
new member = pInfo[playerid][Fraktion];
{
if(member==1)//LVPD
{
if(pInfo[playerid][Rank] == 6) { format(resultstring, sizeof(resultstring), "Polizeipresident %s: %s", SpielerName(playerid), result); }
else if(pInfo[playerid][Rank] == 5) { format(resultstring, sizeof(resultstring), "Lieutnant %s: %s", SpielerName(playerid), result); }
else if(pInfo[playerid][Rank] == 4) { format(resultstring, sizeof(resultstring), "Kommissar %s: %s", SpielerName(playerid), result); }
else if(pInfo[playerid][Rank] == 3) { format(resultstring, sizeof(resultstring), "Bewährungshelfer : %s", SpielerName(playerid), result); }
else if(pInfo[playerid][Rank] == 2) { format(resultstring, sizeof(resultstring), "Officer %s: %s", SpielerName(playerid), result); }
else if(pInfo[playerid][Rank] == 1) { format(resultstring, sizeof(resultstring), "Cadet %s: %s", SpielerName(playerid), result); }
else if(pInfo[playerid][Rank] == 0) { format(resultstring, sizeof(resultstring), "Neuling %s: %s", SpielerName(playerid), result); }
}
for(new i; i<MAX_PLAYERS; i++)
{
if(pInfo[playerid][Fraktion]) == (pInfo[playerid][Fraktion]) || (pInfo[playerid][Leader]) == (pInfo[playerid][Leader]); [color=#ff6600] (Diese Zeile ist der Fehler)[/color]
{
SendClientMessage(i, UEBERSCHRIFT, resultstring);
}
}
}
}
return 1;
}
Error Code:
(555) : error 029: invalid expression, assumed zero