Little Help
#4

Hello i can now not change the Volume what ist wrong ? hope everyone can help me


Код:
if(!strcmp(cmdtext, "/radioon", true))
{
	if (GetPVarInt(playerid, "RadioOn") == 1) return SendClientMessage(playerid,COLOR_GREEN, "* The Radio is allready On!");
	if(Audio_IsClientConnected(playerid))
	{
		SendClientMessage(playerid, COLOR_GREEN, "*Radio On");
		SendClientMessage(playerid, COLOR_GREEN, "* have Fun ");
		sound[playerid] = Audio_PlayStreamed(playerid, "http://sound/dsl.pls");
                                          SetPVarInt( playerid, "RadioOn", 1 );
                                          Loud[playerid] = strval(strget(cmdtext,1));
	}
	else
	{
	SendClientMessage(playerid, COLOR_GREEN, "* No Plugin inastalled!");
	}
	return 1;
}
	if(!strcmp(cmdtext, "/radiooff", true))
	{
		Audio_Stop(playerid,hardbase[playerid]);
		SendClientMessage(playerid, COLOR_GREEN, "* Radio off!");
	return 1;
	}
	
	
	if(!strcmp(cmdtext, "/volume", true))
	{
		if(!strlen(strget(cmdtext,1)))
  			{
   			SendClientMessage(playerid,COLOR_GREEN,"* Use: /volume [Volume 0-100 ]");
   			return 1;
  			}
 		new string[200];
  		Laut[playerid] = strval(strget(cmdtext,1));
		Audio_SetVolume(playerid, sound[playerid], Loud[playerid]);
		format(string, sizeof(string), "* Volume on %d ",Loud[playerid]);
    	SendClientMessage(playerid,COLOR_GREEN, string);
		return 1;
	}
Reply


Messages In This Thread
Little Help - by SanAndreasVille - 24.01.2011, 18:09
Re: Little Help - by HyperZ - 24.01.2011, 18:16
Re: Little Help - by SanAndreasVille - 24.01.2011, 18:28
Re: Little Help - by SanAndreasVille - 24.01.2011, 19:26
Re: Little Help - by SanAndreasVille - 25.01.2011, 14:23
Re: Little Help - by Ricop522 - 25.01.2011, 14:46
Re: Little Help - by SanAndreasVille - 25.01.2011, 17:42
Re: Little Help - by Sasino97 - 25.01.2011, 18:22
Re: Little Help - by SanAndreasVille - 25.01.2011, 18:26
Re: Little Help - by SanAndreasVille - 27.01.2011, 11:34

Forum Jump:


Users browsing this thread: 7 Guest(s)