14.01.2011, 16:10
Код:
if(strcmp("/admins",cmdtext,true) == 0) { new string[128]; new name[20]; for(new i; i<MAX_PLAYERS; i++) { if(GetPVarInt(i,"Aduty") == 1) { if(Spieler[i][AdminLevel] >= 1) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "Level: 1 Admin[ID: %d]: %s ",i,name); SendClientMessage(playerid, COLOR_LIGHTRED, string); } if(Spieler[i][AdminLevel] == 2) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "Level: 2 Admin[ID: %d]: %s ",i,name); SendClientMessage(playerid, COLOR_LIGHTRED, string); } if(Spieler[i][AdminLevel] == 3) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "Level: 3 Admin[ID: %d]: %s ",i,name); SendClientMessage(playerid, COLOR_LIGHTRED, string); } if(Spieler[i][AdminLevel] == 4) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "Level: 4 Admin[ID: %d]: %s ",i,name); SendClientMessage(playerid, COLOR_LIGHTRED, string); } if(Spieler[i][AdminLevel] == 5) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "Level: 5 Admin[ID: %d]: %s ",i,name); SendClientMessage(playerid, COLOR_LIGHTRED, string); } if(Spieler[i][AdminLevel] == 6) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "Level: 6 Admin[ID: %d]: %s ",i,name); SendClientMessage(playerid, COLOR_LIGHTRED, string); } if(Spieler[i][AdminLevel] == 7) { GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "Level: 7 Admin[ID: %d]: %s ",i,name); SendClientMessage(playerid, COLOR_LIGHTRED, string); }}} return 1; }
You know the Bug? Please help me.
]B4E[kengston
]B4E[kengston