10.10.2016, 19:05
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));