SA-MP Forums Archive
Strange bug - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Strange bug (/showthread.php?tid=629790)



Strange bug - StrikerZ - 04.03.2017

When I go near Los santos's airport's entrance or ahead i get crashed, not me ,everyone who goes near that area. There are no mappings in that area. And only happens if we're in a plane.


Re: Strange bug - Toroi - 04.03.2017

Are you using a streamer?
Is it other's gamemode or is it a self made one?


Re: Strange bug - StrikerZ - 04.03.2017

Yes I use Streamer.


Re: Strange bug - Toroi - 04.03.2017

Show us your OnPlayerEnterDynamicArea, please


Re: Strange bug - StrikerZ - 04.03.2017

PHP код:
public OnPlayerEnterDynamicArea(playeridareaid)
{
    if(
areaid == CG)
    {
        
SetPlayerArmedWeapon(playerid0);
    }
    foreach(new 
iPlayer)
    {
        if(
GetPVarType(i"pBoomBoxArea"))
        {
            if(
areaid == GetPVarInt(i"pBoomBoxArea"))
            {
                new 
station[256];
                
GetPVarString(i"pBoomBoxStation"stationsizeof(station));
                if(!
isnull(station))
                {
                    
PlayAudioStreamForPlayerEx(playeridstationGetPVarFloat(i"pBoomBoxX"), GetPVarFloat(i"pBoomBoxY"), GetPVarFloat(i"pBoomBoxZ"), 30.01);
                }
                return 
1;
            }
        }
    }
    if(
areaid == audiourlid)
    {
        
PlayAudioStreamForPlayerEx(playeridaudiourlurlaudiourlparams[0], audiourlparams[1], audiourlparams[2], audiourlparams[3], 1);
    }
    

            
        
    return 
1;




Re: Strange bug - StrikerZ - 04.03.2017

Got anything bud?


Re: Strange bug - Toroi - 04.03.2017

Comment off all these and test in game.

PHP код:
public OnPlayerEnterDynamicArea(playeridareaid)
{
/*    if(areaid == CG)
    {
        SetPlayerArmedWeapon(playerid, 0);
    }
    foreach(new i: Player)
    {
        if(GetPVarType(i, "pBoomBoxArea"))
        {
            if(areaid == GetPVarInt(i, "pBoomBoxArea"))
            {
                new station[256];
                GetPVarString(i, "pBoomBoxStation", station, sizeof(station));
                if(!isnull(station))
                {
                    PlayAudioStreamForPlayerEx(playerid, station, GetPVarFloat(i, "pBoomBoxX"), GetPVarFloat(i, "pBoomBoxY"), GetPVarFloat(i, "pBoomBoxZ"), 30.0, 1);
                }
                return 1;
            }
        }
    }
    if(areaid == audiourlid)
    {
        PlayAudioStreamForPlayerEx(playerid, audiourlurl, audiourlparams[0], audiourlparams[1], audiourlparams[2], audiourlparams[3], 1);
    }
    

            
        */
    
return 1;




Re: Strange bug - StrikerZ - 04.03.2017

Didn't worked.