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


Messages In This Thread
Code crashes my GM - by BizzyD - 25.10.2014, 12:35
Re: Code crashes my GM - by Laurey - 25.10.2014, 12:38
Re: Code crashes my GM - by BizzyD - 25.10.2014, 12:42

Forum Jump:


Users browsing this thread: 2 Guest(s)