What's wrong ???
#6

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Do it like this:

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(Stringsizeof(String), "Your rank it's %s !"GetRank(7,6));
SendClientMessage(playerid, -1String); 
You must spend some repotation blabla bla .. Thx you ... I can't give you rep

Quote:
Originally Posted by Kaliber
Посмотреть сообщение
Okay...ignore my correct answer
Didn't see you post
Reply


Messages In This Thread
What's wrong ??? - by Mariciuc223 - 22.07.2015, 16:32
Re: What's wrong ??? - by SpikY_ - 22.07.2015, 16:37
AW: What's wrong ??? - by Kaliber - 22.07.2015, 16:40
Re: What's wrong ??? - by Mariciuc223 - 22.07.2015, 16:41
AW: What's wrong ??? - by Kaliber - 22.07.2015, 16:42
Re: AW: What's wrong ??? - by Mariciuc223 - 22.07.2015, 16:46

Forum Jump:


Users browsing this thread: 1 Guest(s)