[Help] error 035: argument type mismatch (argument 2)
#1

With this code i get error error 035: argument type mismatch (argument 2)
Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == DIALOG_PUSTIMUZIKU)
	{
		new url = strval(inputtext);
		if(sscanf(inputtext, "i", url)) return ShowPlayerDialog(player,DIALOG_PUSTIMUZIKU,DIALOG_STYLE_INPUT, ""ZUTA"Pustanje", "Unesite URL [DIRECT LINK] Pesme", "Pusti", "Izlaz");
		{
		StopAudioStreamForPlayer(player);
		PlayAudioStreamForPlayer(player,url);
		}
	}
	return 1;
 }
Could you help me with this? Tnaks
That line is PlayAudioStreamForPlayer(player,url);
Reply
#2

I have solve the error but i will post the new problem in few minutes with textdraw-
Edit:
public OnPlayerClickTextDraw(playerid, Text:clickedid)
{
if(clickedid == Textdraw[16]) ShowPlayerDialog(playerid, DIALOG_PUSTIMUZIKU, DSI, "Music", "Unesite link pesme koju zelite da pustite u prozoru koji Vam se pojavi!\n/MUZIKA", "OK", "Izlaz" );
return 1;
}
************************************************** *******************
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == DIALOG_PUSTIMUZIKU)
{
new url = strval(inputtext);
if(sscanf(inputtext, "i", url)) return ShowPlayerDialog(player,DIALOG_PUSTIMUZIKU,DIALOG_ STYLE_INPUT, ""ZUTA"Pustanje", "Unesite URL [DIRECT LINK] Pesme", "Pusti", "Izlaz");
{
StopAudioStreamForPlayer(player);
PlayAudioStreamForPlayer(player,inputtext);
}
}
return 1;
}

This code is not working IG
Reply
#3

Wrong , You forgot to set the X, Y, Z to player from and The Float Distance to play the stream,
Read: https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
and player is not correct, it's playerid
Reply
#4

Ok i solved the error but i have that problem about i've wrote in ma last post
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)