SA-MP Forums Archive
[Help] error 035: argument type mismatch (argument 2) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help] error 035: argument type mismatch (argument 2) (/showthread.php?tid=489297)



[Help] error 035: argument type mismatch (argument 2) - cr33d - 21.01.2014

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);


Re: [Help] error 035: argument type mismatch (argument 2) - cr33d - 21.01.2014

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


Re: [Help] error 035: argument type mismatch (argument 2) - Sawalha - 21.01.2014

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


Re: [Help] error 035: argument type mismatch (argument 2) - cr33d - 21.01.2014

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