Hallo ich weiß aber Warnings sind nicht wichtig aber nun brauche ich dringend eure Hilfe
ERRORS:
Zitat
(21614) : warning 215: expression has no effect
(21620) : warning 215: expression has no effect
(21627) : warning 215: expression has no effect
Und Hier die zeilen
ZitatAlles anzeigen
if(strcmp(cmd, "/rb", true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 PlayerInfo[playerid][pLeader] == 1 PlayerInfo[playerid][pMember] == 2 PlayerInfo[playerid][pLeader] == 2 PlayerInfo[playerid][pMember] == 3 PlayerInfo[playerid][pLeader] == 3 PlayerInfo[playerid][pMember] == 21 PlayerInfo[playerid][pLeader] == 21)
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_YELLOW, "[BENUTZUNG:] /rb [Funktion]");
SendClientMessage(playerid, COLOR_WHITE, "Verfügbare Funktionen: add , weg , alleweg");
return 1;
}
if(strcmp(tmp,"add",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 PlayerInfo[playerid][pLeader] == 1 PlayerInfo[playerid][pMember] == 2 PlayerInfo[playerid][pLeader] == 2 PlayerInfo[playerid][pMember] == 3 PlayerInfo[playerid][pLeader] == 3 PlayerInfo[playerid][pMember] == 21 PlayerInfo[playerid][pLeader] == 21)
SendClientMessage(playerid, COLOR_RED, "[ZENTRALE:] Eine Straßensperren wurde aufgebaut!");
AddStrassensperre(playerid);
return 1;
}
else if(strcmp(tmp,"weg",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 PlayerInfo[playerid][pLeader] == 1 PlayerInfo[playerid][pMember] == 2 PlayerInfo[playerid][pLeader] == 2 PlayerInfo[playerid][pMember] == 3 PlayerInfo[playerid][pLeader] == 3 PlayerInfo[playerid][pMember] == 21 PlayerInfo[playerid][pLeader] == 21)
RemoveStrassensperre(playerid);
SendClientMessage(playerid, COLOR_RED, "[ZENTRALE:] Die Straßensperren wurde erfolgreich abgebaut!");
return 1;
}
else if(strcmp(tmp,"alleweg",true) == 0)
{
if(PlayerInfo[playerid][pMember] == 1 PlayerInfo[playerid][pLeader] == 1 PlayerInfo[playerid][pMember] == 2 PlayerInfo[playerid][pLeader] == 2 PlayerInfo[playerid][pMember] == 3 PlayerInfo[playerid][pLeader] == 3 PlayerInfo[playerid][pMember] == 21 PlayerInfo[playerid][pLeader] == 21)
RemoveAllStrassensperre(playerid);
SendClientMessage(playerid, COLOR_RED, "[ZENTRALE:] Alle Straßensperren wurde erfolgreich abgebaut!");
return 1;
}
}