Hallo mein Scripter is zu müde für das fertig scripten wir haben 5errors if(strcmp(cmd, "/government", true) == 0 || strcmp(cmd, "/gov", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][Leader] < 1), if(PlayerInfo[playerid][pLeader] < 2), if(PlayerInfo[playerid][Leader] < 3), if(PlayerInfo[playerid][pLeader] < 4), if(PlayerInfo[playerid][Leader] < 5), if(PlayerInfo[playerid][pLeader] < 6), if(PlayerInfo[playerid][Leader] < 7), if(PlayerInfo[playerid][pLeader] < 8), if(PlayerInfo[playerid][Leader] < 9), if(PlayerInfo[playerid][pLeader] < 10), if(PlayerInfo[playerid][Leader] < 11), if(PlayerInfo[playerid][pLeader] < 12), if(PlayerInfo[playerid][Leader] < 13), if(PlayerInfo[playerid][pLeader] < 14), if(PlayerInfo[playerid][Leader] < 15), if(PlayerInfo[playerid][pLeader] < 16), if(PlayerInfo[playerid][Leader] < 17), if(PlayerInfo[playerid][pLeader] < 18), if(PlayerInfo[playerid][Leader] < 19), if(PlayerInfo[playerid][pLeader] < 20), if(PlayerInfo[playerid][Leader] < 21), if(PlayerInfo[playerid][pLeader] < 22), if(PlayerInfo[playerid][Leader] < 23), if(PlayerInfo[playerid][pLeader] < 24)
SendClientMessage(playerid, COLOR_GREY, " Du bist kein Fraktions Leader!");
return 1;
}
if(PlayerInfo[playerid][pRank] < 12)
{
SendClientMessage(playerid, COLOR_GREY, " Du benötigst mindestens Rang 12!");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
new leader = PlayerInfo[playerid][pLeader];
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /gov(ernment) [Nachricht]");
return 1;
}
SendClientMessageToAll(COLOR_WHITE, "|================= {FF0000}Fraktions - News {FFFFFF}=================|");
if(PlayerInfo[playerid][pLeader] == 1)
{
format(string, sizeof(string), "LSPD - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 2)
{
format(string, sizeof(string), "JVA - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 3)
{
format(string, sizeof(string), "Army - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 4)
{
format(string, sizeof(string), "Medic - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 5)
{
format(string, sizeof(string), "LCN - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 6)
{
format(string, sizeof(string), "Yakuza - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 7)
{
format(string, sizeof(string), "Präsident %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 8)
{
format(string, sizeof(string), "Hitman - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 9)
{
format(string, sizeof(string), "CNN - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 10)
{
format(string, sizeof(string), "Taxi - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 11)
{
format(string, sizeof(string), "Fahrlehrer - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 12)
{
format(string, sizeof(string), "Triaden - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 13)
{
format(string, sizeof(string), "Grove Street - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 14)
{
format(string, sizeof(string), "Ballas - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 15)
{
format(string, sizeof(string), "LS Biker Club - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 16)
{
format(string, sizeof(string), "Vagos - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 17)
{
format(string, sizeof(string), "Aztecas - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 18)
{
format(string, sizeof(string), "Rifa - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 19)
{
format(string, sizeof(string), "Red Soliders - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 20)
{
format(string, sizeof(string), "Terror - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 21)
{
format(string, sizeof(string), "Wheelman - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 22)
{
format(string, sizeof(string), "Feuerwehr - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 23)
{
format(string, sizeof(string), "Russkaja Bratwa - Leader %s: %s", sendername, result);
}
else if(PlayerInfo[playerid][pLeader] == 24)
{
format(string, sizeof(string), "Ordnungsamr - Leader %s: %s", sendername, result);
}
SendClientMessageToAll(COLOR_DBLUE, string);
}
return 1;
}
Wäre sehr hilfreich thx