18.03.2016, 20:21
Very simple GetFightingStyleName(style, string[], len) function
Gets the name of the specified fight style and writes it to a string.
Gets the name of the specified fight style and writes it to a string.
Код:
static const FightingStyleNames[][] = { "Normal", "Boxing", "Kung fu", "Knee Head", "", "", "", "", "", "", "", "Grab Kick", "Elbow" }; stock GetFightingStyleName(style, string[], len) { if(!(3 < style < 8) && !(14 < style < 17)) return 0; strmid(string, FightingStyleNames[style - 4], 0, strlen(FightingStyleNames[style - 4]), len); return 1; }