Hallo ich sehe da kein Klammerfehler nichtmal NotePad++ findet da was
ocmd:f(playerid,params[])
{
new text[128];
if(sscanf(params,"s",text)) return SendClientMessage(playerid,ROT,"Benutzte:/f [TEXT]");
if(IstSpielerMember(playerid,1))
{
switch(rank)
{
case 1: format(rankf,32,"Praktikant");
case 2: format(rankf,32,"Kadet");
case 3: format(rankf,32,"Streifenleiter");
case 4: format(rankf,32,"Ausbilder");
case 5: format(rankf,32,"Chief");
}
}
else if(IstSpielerMember(playerid,2))
{
switch(rank)
{
case 1: format(rankf,32,"Praktikant");
case 2: format(rankf,32,"Sprayer");
case 3: format(rankf,32,"Homie");
case 4: format(rankf,32,"Oberhomie");
case 5: format(rankf,32,"GrooveStyler");
}
}
else if(IstSpielerMember(playerid,3))
{
switch(rank)
{
case 1: format(rankf,32,"Praktikant");
case 2: format(rankf,32,"Sprayer");
case 3: format(rankf,32,"Nigger");
case 4: format(rankf,32,"OberNigger");
case 5: format(rankf,32,"BallasStyler");
}
}
else if(IstSpielerMember(playerid,4))
{
switch(rank)
{
case 1: format(rankf,32,"Praktikant");
case 2: format(rankf,32,"Novieto");
case 3: format(rankf,32,"CrispZ");
case 4: format(rankf,32,"OberNovieto");
case 5: format(rankf,32,"AzenStyler");
}
}
else if(IstSpielerMember(playerid,5))
{
switch(rank)
{
case 1: format(rankf,32,"Praktikant");
case 2: format(rankf,32,"Sprayer");
case 3: format(rankf,32,"Homie");
case 4: format(rankf,32,"Oberhomie");
case 5: format(rankf,32,"VagosStyler");
}
}
else if(IstSpielerMember(playerid,6))
{
switch(rank)
{
case 1: format(rankf,32,"Praktikant");
case 2: format(rankf,32,"Krankenschwester");
case 3: format(rankf,32,"Ausbilder");
case 4: format(rankf,32,"Chirug");
case 5: format(rankf,32,"ChefArtzt");
}
}
format(text,sizeof(text),"[%s] %s : %s",rankf,SpielerName(playerid),text);
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(IstSpielerInFrak(i,GetPVarInt(playerid,"Fraktion")))
{
SendClientMessage(i,hblau,text);
}
}
}
return 1;
}