Example:
actor's name is "player"
the function for sound will be:
- Code: Select all
PlaySound2("data/player.wav", 1.000000, 1, 0.000000);
but how make what in place of actor's name are a variable with the valor "player"
i tried this but give error:
- Code: Select all
char actorname[32];
char sounds[32];
getclone(actorname);
sprintf(sounds, "/data/%d.wav",actorname);
PlaySound2("sounds", 1.000000, 1, 0.000000);
I wait what you understand my english bad..
chaoooooooooooo