23.04.2012, 01:43
Quote:
Why are you using strval on inputtext..?
Get rid of all the string shit and just do PlayAudioStreamForPlayer(i, inputtext, X, Y, Z, 50, 1); |
Here's the code lil bruh. Try this one
pawn Код:
if(dialogid == 125)
{
if(strlen(inputtext))
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInRangeOfPoint(i, 50 , X, Y, Z))
{
PlayAudioStreamForPlayer(i, inputtext, X, Y, Z, 50, 1);
return 1;
}
return 1;
}
}
}
}