Was ist an meinen Befehl falsch? (/members)
if(IsPlayerConnected(playerid))
{
new teamnumber;
if (PlayerInfo[playerid][pLeader] != 0) teamnumber = PlayerInfo[playerid][pLeader];
else if (PlayerInfo[playerid][pMember] != 0) teamnumber = PlayerInfo[playerid][pMember];
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist in keiner Fraktion!");
return 1;
}
SendClientMessage(playerid, 0x808000AA, "**Mitglieder Online**");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof(string), "");
if (PlayerInfo[i][pLeader] == teamnumber) format(string, sizeof(string), "%s (Leader)",sendername);
else if (PlayerInfo[i][pMember] == teamnumber) format(string, sizeof(string), "%s, Rank: %d.",sendername, PlayerInfo[i][pRank]);
if (strlen(string) > 1) SendClientMessage(playerid, 0xF5DEB3AA, string);
}
}
}
return 1;
kriege diese errors
error 017: undefined symbol "pLeader"
error 017: undefined symbol "pLeader"
error 017: undefined symbol "pMember"
error 017: undefined symbol "pMember"
error 017: undefined symbol "COLOR_GRAD1" (ist farbe kann ich machen ;))
warning 217: loose indentation
warning 217: loose indentation
error 017: undefined symbol "sendername"
error 017: undefined symbol "sendername"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
9 Errors.