21.12.2012, 01:00
Hello, Im trying to get my audio to stop after logging in, I need some help please.
I put this under gplayeraccount
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: That name is registered, please wait to login.");
SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now login by typing your password below");
DisplayDialogForPlayer(playerid, 1); //login
PlayAudioStreamForPlayer(playerid, "http://37.221.170.8/~nqiojnzm/sug.mp3");
if(gPlayerLogged[playerid] && IsPlayerConnected(playerid))
StopAudioStreamForPlayer(playerid);
Why isn't it stopping?
I put this under gplayeraccount
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_YELLOW, "SERVER: That name is registered, please wait to login.");
SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now login by typing your password below");
DisplayDialogForPlayer(playerid, 1); //login
PlayAudioStreamForPlayer(playerid, "http://37.221.170.8/~nqiojnzm/sug.mp3");
if(gPlayerLogged[playerid] && IsPlayerConnected(playerid))
StopAudioStreamForPlayer(playerid);
Why isn't it stopping?