14.04.2012, 15:30
what do you mean The Command you didt put that code under a command did u ?
it suppost to go likes this
EDIT for that small amount of code to save lines use this
i dont think u need to check if the players is connect,becouse if he isnt then the callback would call anyway
it suppost to go likes this
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == RADIODIALOG) //
{
if(response)
{
if(IsPlayerConnected(playerid))PlayAudioStreamForPlayer(playerid, inputtext);
}
}
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == RADIODIALOG && response) PlayAudioStreamForPlayer(playerid,inputtext);
}