GetPlayerFightingStyle want words,not numbers
#1



so,i get this number of fightingstyle with this:



pawn Код:
Para = GetPlayerFightingStyle(i);
new hrk[265];
format(hrk,sizeof(hrk),"~p~Gorivo: ~w~%d%%~n~~g~~h~Energija: ~w~%d~n~~b~~h~Brzina: ~w~%d km/h~n~~r~~h~Ubistva: ~w~%d~n~~y~Smrti: ~w~%d~n~~p~~h~Banka: ~w~USKORO!~n~~b~~h~Stil: ~w~%d",VGas[VehID], floatround(hp), Speed, PlayerData[i][Kills], PlayerData[i][Deaths], Para);

and I've been wondering, how could I change this number 4 to FIGHT_STYLE_NORMAL or even name like,dunno,JUDO?


I'm trying something like:


pawn Код:
if(GetPlayerFightingStyle(playerid) == FIGHT_STYLE_NORMAL)
{
ormat(hrk,sizeof(hrk),"~p~Stil: ~w~%d -FIGHT_STYLE_NORMAL (JUDO) , Para);
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)