07.07.2013, 19:53
When you call the function, Audio_OnPlay has already been called? Are you sure?
Add a debug in Audio_OnPlay, and debug the playerVariables[playerid][pAudioHandle] inside Function ( .. ) with the value
Add a debug in Audio_OnPlay, and debug the playerVariables[playerid][pAudioHandle] inside Function ( .. ) with the value
Код:
printf("handle value: %d", playerVariables[playerid][pAudioHandle]); Audio_Set3DPosition(playerid, playerVariables[playerid][pAudioHandle], playerPos[0], playerPos[1], playerPos[2], 50.0);