18.03.2017, 15:49
Hi, I'm making a death system right now and I stumbled across a problem where it doesn't get the whole animation name from an array.
This is the code:
I printed the library and animation's name out and it said
The library was correct but the name was just two letters. What's the problem here?
This is the code:
Код:
static const DeathAnimations[][] = { {"ped", "KO_skid_front"}, {"ped", "KO_shot_stom"}, {"ped", "KO_skid_front"}, {"ped", "KO_skid_back"}, {"KNIFE", "KILL_Knife_Ped_Die"} }; new index = random(sizeof(DeathAnimations)); ApplyAnimation(playerid, DeathAnimations[index][0], DeathAnimations[index][1], 4.1, 0, 1, 1, 1, 0, 1);
Код:
ped ed