Hallo irgendwie funkt dieser cmd nicht könnt ihr mir vill sagen was hier falsch ist
if(strcmp(cmd, "/giverank", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /giverank [SPIELER ID] [Number(1-6)]");
return 1;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level > 9 || level < 0) { SendClientMessage(playerid, COLOR_GREY, " SERVER: Fraktion hat nur 6 ränge."); return 1; }
if(PlayerInfo[playerid][pLeader] == 2 && PlayerInfo[para1][pMember] != 2)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 3 && PlayerInfo[para1][pMember] != 3)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 4 && PlayerInfo[para1][pMember] != 4)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 5 && PlayerInfo[para1][pMember] != 5)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 6 && PlayerInfo[para1][pMember] != 6)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 7)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 8 && PlayerInfo[para1][pMember] != 8)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 9 && PlayerInfo[para1][pMember] != 9)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
/*if(PlayerInfo[playerid][pLeader] == 10 && PlayerInfo[para1][pMember] != 10)
{
SendClientMessage(playerid, COLOR_GRAD2, "Access denied!");
return 1;
}*/
/*if(PlayerInfo[playerid][pLeader] == 11 && PlayerInfo[para1][pMember] != 11)
{
SendClientMessage(playerid, COLOR_GRAD2, "Access denied!");
return 1;
}*/
if(PlayerInfo[playerid][pLeader] == 12 && PlayerInfo[para1][pMember] != 12)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 13 && PlayerInfo[para1][pMember] != 13)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 14 && PlayerInfo[para1][pMember] != 14)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 15 && PlayerInfo[para1][pMember] != 15)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 16 && PlayerInfo[para1][pMember] != 16)
{
SendClientMessage(playerid, COLOR_GRAD2, "Zugriff verweigert!");
return 1;
}
if (PlayerInfo[playerid][pLeader] >= 1)
{
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pRank] = level;
format(string, sizeof(string), " Dein Rank wurde erhöht von Leader %s", sendername);
SendClientMessage(para1, COLOR_WHITE, string);
format(string, sizeof(string), " du hast %s denn rank erhöht auf rank %d.", giveplayer,level);
SendClientMessage(playerid, COLOR_WHITE, string);
if(PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[para1][pSex] == 1)
{