Code crashes my GM
#1

Hello, I have a issue with this code:

Код:
if(IsAtRadioTower(playerid))
	{
        if(GetPVarInt(playerid, "AtRadioTower") != 0)
        {
            SetPVarInt(playerid, "AtRadioTower", GetPVarInt(playerid, "AtRadioTower")+1);
            PlayAudioStreamForPlayer(playerid, "http://URLREMOVED/music/2.mp3");
		}
		else if(!IsAtRadioTower(playerid))
		{
		    DeletePVar(playerid,"AtRadioTower");
            StopAudioStreamForPlayer(playerid);
		}
	}
It crashes my gamemode and leaves this error in the server panel: Run time error 17: "Invalid/unsupported P-code file format"

Whats wrong with it?
Reply
#2

You sure you got the plugin needed for it? Audio plugin is required i guess.
Reply
#3

Yeah that did it. Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)