SA-MP Forums Archive
Help? - 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: Help? (/showthread.php?tid=381473)



Help? - N0FeaR - 29.09.2012

Код:
C:\Users\Hellman.Hellmans-PC\Desktop\snusk\gamemodes\LC-RP.pwn(2702) : error 017: undefined symbol "isnull"
pawn Код:
public OnPlayerEnterDynamicArea(playerid, areaid)
{
    foreach(Player, i)
    {
        if(GetPVarType(i, "pDynamicBBArea"))
        {
            if(areaid == GetPVarInt(i, "pDynamicBBArea"))
            {
                new station[256];
                GetPVarString(i, "pDynamicBBStation", station, sizeof(station));
                if(!isnull(station))
                {
                    PlayAudioEx(playerid, station, GetPVarFloat(i, "pDynamicBBX"), GetPVarFloat(i, "pDynamicBBY"), GetPVarFloat(i, "pDynamicBBZ"), 30.0, 1);
                }
                return 1;
            }
        }
    }
    return 1;
}



Re: Help? - M3mPHi$_S3 - 29.09.2012

try with this at top
pawn Код:
new isnull [MAX_PLAYERS];



Re: Help? - N0FeaR - 29.09.2012

Quote:
Originally Posted by мυ∂υℓ_вacнα
Посмотреть сообщение
try with this at top
pawn Код:
new isnull [MAX_PLAYERS];
Already fixed i forgot to add this :P

Код:
#if !defined isnull
    #define isnull(%1) \
                ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif



Re: Help? - XtremeR - 29.09.2012

@maul wrong it wont work
use this:
pawn Код:
#if !defined isnull
    #define isnull(%1) \
                ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
ofc at the top


Re: Help? - N0FeaR - 29.09.2012

Quote:
Originally Posted by XtremeR
Посмотреть сообщение
@maul wrong it wont work
use this:
pawn Код:
#if !defined isnull
    #define isnull(%1) \
                ((!(%1[0])) || (((%1[0]) == '\1') && (!(%1[1]))))
#endif
ofc at the top
Read the post above.