HeyHoo,
habe folgendes Problem:
Wenn ich InGame /f hhdjdas eintippe: erscheint das:
Hier der Code:
ocmd:f(playerid,params[])
{
new result[128];
if(sscanf(params,"s",result))return SendClientMessage(playerid,Grau, "Benutze:/f(raktion) [Text]");
{
new resultstring[129];
new Name[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
new member = GetPVarInt(playerid,"Fraktion");
new leader = GetPVarInt(playerid,"Leader");
if(GetPVarInt(playerid,"Fraktion")!=0)
{
if(member==1)
{
if(GetPVarInt(playerid,"frakrank") == 6) { format(resultstring, sizeof(resultstring), "Lieutnant %s: %s", Name, result); }
else if(GetPVarInt(playerid,"frakrank") == 5) { format(resultstring, sizeof(resultstring), "Oberkommissar %s: %s", Name, result); }
else if(GetPVarInt(playerid,"frakrank") == 4) { format(resultstring, sizeof(resultstring), "Kommissar %s: %s", Name, result); }
else if(GetPVarInt(playerid,"frakrank") == 3) { format(resultstring, sizeof(resultstring), "Bewährungshelfer %s: %s", Name, result); }
else if(GetPVarInt(playerid,"frakrank") == 2) { format(resultstring, sizeof(resultstring), "Officer %s: %s", Name, result); }
else if(GetPVarInt(playerid,"frakrank") == 1) { format(resultstring, sizeof(resultstring), "Cadet %s: %s", Name, result); }
}
else if(leader==1)
{
format(resultstring, sizeof(resultstring), "Captain %s: %s", Name, result);
}
for(new i; i<MAX_PLAYERS; i++)
{
if(GetPVarInt(playerid,"Fraktion") == GetPVarInt(playerid,"Fraktion") || GetPVarInt(playerid,"Leader") == GetPVarInt(playerid,"Leader"))
{
SendClientMessage(i, ChatGreen, resultstring);
}
}
}
}
return 1;
}
Keine Errors, bitte um Hilfe!
lg
DJ Deagle