Hey,
ich habe hier mal einen neuen public erstellt, der allen anwesenden Cops eine Nachricht senden sollte, sofern dies benutzt wird:
public SendCopMessage(color,const string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2 PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3 PlayerInfo[i][pMember] == 21 || PlayerInfo[i][pLeader] == 21)
{
SendClientMessage(i, color, string);
printf("%s", string);
}
}
}
return 1;
}
Jedoch bekomme ich diese Error´s:
ZitatAlles anzeigenC:\Users\script.pwn(14491) : error 001: expected token: ")", but found "-identifier-"
C:\Users\script.pwn(14491) : warning 215: expression has no effect
C:\Users\script.pwn(14491) : error 001: expected token: ";", but found "-identifier-"
C:\Users\script.pwn(14491) : warning 215: expression has no effect
C:\Users\script.pwn(14491) : error 001: expected token: ";", but found ")"
C:\Users\script.pwn(14491) : fatal error 107: too many error messages on one line
Alles in folgender Zeile:
if(PlayerInfo[i][pMember] == 1 || PlayerInfo[i][pLeader] == 1 || PlayerInfo[i][pMember] == 2 || PlayerInfo[i][pLeader] == 2 PlayerInfo[i][pMember] == 3 || PlayerInfo[i][pLeader] == 3 PlayerInfo[i][pMember] == 21 || PlayerInfo[i][pLeader] == 21)
Mit if(IsACop[i] kam dies ebenfalls.
Hoffentlich kann mir jemand helfen.
//Edit: Rechtschreibung
Grüße,
tonyalva