number of arguments does not match definition
#1

Hi i'm bigginer scripter today i wanted to try to add when i /streamforall a text that shows who put the song but i kepp getting this warning > warning 202: number of arguments does not match definition

Код:
CMD:streamforall(playerid,params[])
{
 	if(PlayerInfo[playerid][pAdmin] >= 4){
	    new url[200];
		if(sscanf(params,"s[200]", url)) return SendClientMessage(playerid, -1,"{FF0000}Syntax: /streamforall [url]{FF0000}");
	    for(new i = 0; i < MAX_PLAYERS; i++)
        format(string, sizeof(string), "Song Played by %s. \nType /stopplay to stop the music", GetPlayerName(playerid));
		{
        PlayAudioStreamForPlayer(i, url);
		}
	}else{
		SendClientMessage(playerid, -1, "   {FF0000}Error:{FF0000} {FFFFFF}You are not authorized to use this command!{FFFFFF}");
	}
	return 1;
}
Код:
Warning in : format(string, sizeof(string), "Song Played by %s. \nType /stopplay to stop the music", GetPlayerName(playerid));
Reply


Messages In This Thread
number of arguments does not match definition - by XSharkX - 10.10.2016, 19:05
Re: number of arguments does not match definition - by SickAttack - 10.10.2016, 19:11
Re: number of arguments does not match definition - by XSharkX - 10.10.2016, 19:18
Re: number of arguments does not match definition - by Mencent - 10.10.2016, 19:22
Re: number of arguments does not match definition - by XSharkX - 10.10.2016, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)