23.10.2016, 16:57
You forgot to add else on the last statement and else if on the 2nd so replace 2nd if with else if and add an else on the last one, it should look like this:
PHP код:
ocmd:members(playerid,params[])
{
if(pInfo[playerid][fraktion]!=0)
{
SendClientMessage(playerid, 0x808000FF, "** Mitglieder online **");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(pInfo[i][fraktion] == pInfo[playerid][fraktion])
{
new str[256];
if(pInfo[i][frang]==10)
{
format(str,sizeof(str),"%s Rank : {C20009}CO-Leader",PlayerName(i));
SendClientMessage(playerid, WEIЯ, str);
}
else if(pInfo[i][frang]==11)
{
format(str,sizeof(str),"%s Rank : {C20009}Leader",PlayerName(i));
SendClientMessage(playerid, WEIЯ, str);
}
else
{
format(str, sizeof(str), "%s Rank : %d",PlayerName(i),pInfo[i][frang]);
SendClientMessage(playerid, WEIЯ, str);
}
}
}
}
}
return 1;
}