help me PlayAudioStream For all Player
#1

Quote:

H:\samp\gamemodes\COD6.pwn(26834) : error 035: argument type mismatch (argument 3)
H:\samp\gamemodes\COD6.pwn(26836) : warning 209: function "cmd_gplay" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.

Quote:

COMMAND:gplay(playerid, params[])
{
new
string[1000],http[100];
for(new i = 0; i < MAX_PLAYERS; i++)
{
format(string,sizeof(string),""COL_BLUE"(music): "COL_WHITE" admin\"%s (%d)\" played music(http: %s)",GetName(playerid),http);
if(sscanf(params, "us[100]", http)) return SCM(playerid, COLOR_RED, ""COL_CYAN"sever: "COL_WHITE"/gplay (http)");
PlayAudioStreamForPlayer(i, "%s",http);
}
}

whats wrong,PlayAudioStreamForPlayer(i, "%s",http);
this is no work
Reply
#2

pawn Код:
COMMAND:gplay(playerid, params[])
{
new
string[100],http[100];
if(sscanf(params, "s[100]", http)) return SCM(playerid, COLOR_RED, ""COL_CYAN"sever: "COL_WHITE"/gplay (http)");
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
PlayAudioStreamForPlayer(i, http);
}
format(string,sizeof(string),""COL_BLUE"(music): "COL_WHITE" admin\"%s (%d)\" played music(http: %s)",GetName(playerid),http);
SendClientMessageToAll(-1, string);
}
return 1;
}
I havent understand what do you want to do because that string doesnt have to do anything there and the parameter "u" isnt necesary because you are making a loop.
Reply
#3

thank!audio stream work now
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)