PHP код:
#define GetRank(%0,%1) fRanks[(%0)-1][(%1)-1]
stock const fRanks[][][] =
{
{ "Cadet", "Officer", "Sergeant", "Lieutenant", "Captain", "Chief" }, // Police Departament
{ "Professional Staff", "Special Agent", "Special Agent in Charge", "Assistant of Director", "Vice-Director", "Director" }, // Federal Bureau Of Investigation
{ "Private", "Sergeant", "Major", "Captain", "Lieutenant", "General" }, // National Guard
{ "Assistant", "Assistant In Charge", "Medic", "Paramedic", "Special Medic", "Chief Medic" }, // Medics/Fireman Departament
{ "Intern", "Local Reporter", "Network Editor", "Network Anchor", "Journalist", "Network Producer" }, // News Reporters
{ "Trainee", "Taxi Rookie", "Cabbie", "Despatcher", "Shift Supervisor", "Taxi Company Owner" }, // Taxi Cab Company
{ "OutSider", "Soulja", "Gangsta", "Original Gangsta", "Double OG", "Grove King" }, // Grove Street Family
{ "OutSider", "YoungBlood", "Gangsta", "Original Gangsta", "Double OG", "Balla' GodFather" }, // Ballas Gang
{ "Cabron", "Vago", "Soldado", "Mafioso", "Derecha Mano", "Senior" }, // Los Santos Vagos
{ "Cabron", "Vago", "Soldado", "Mafioso", "Derecha Mano", "Senior" }, // Varrios Los Aztecas
{ "Soldado", "Caporale", "Sergente", "Luogotenente", "Colonnello", "Padrino" }, // La Cosa Nostra
{ "Recuit", "Corporal", "Colonel", "Brigadier", "General", "WarLord" }, // Yakuza
{ "Junior", "Drifter", "Legal Racer", "Event Maker", "Ilegal Racer", "Most Wanted" }, // For More Adrenaline
{ "Lancer", "Marksman", "Agent", "Special Agent", "Vice-Director", "Director" } // Hitman Agency
};
//Usage:
new String[128];
format(String, sizeof(String), "Your rank it's %s !", GetRank(7,6));
SendClientMessage(playerid, -1, String);