01.07.2015, 14:07
This is pretty important because i have this :
and i want to turn it into mysql !
Код:
stock GetPlayerOFactionName(targetname[]) { new ttext[64]; // if player is in a family, format family name if(dini_Int(targetname, "FMember") != 255) format(ttext,sizeof(ttext),"%s",FamilyInfo[dini_Int(targetname, "FMember")][FamilyName]); // else format faction name else { switch(dini_Int(targetname, "Member")) { case 1: ttext = "lspd"; case 2: ttext = "FBI"; case 3: ttext = "RCSD"; case 4: ttext = "LSFMD"; case 5: ttext = "NG"; case 6: ttext = "Senate"; case 66413: ttext = "????"; case 8: ttext = "Hitmen"; case 9: ttext = "News"; case 10: ttext = "Taxi"; default: ttext = "None"; } } return ttext; }