01.07.2015, 15:46
Quote:
This is pretty important because i have this :
Код:
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; } |
All you're doing is telling "ttext" that it's a string that contains.. "name"...
You should be..
PHP код:
new ttext[128];
format(ttext, sizeof(ttext), "%s", case);