Include Error
#1

Can anyone help me with this error?

pawn Код:
C:\DOCUME~1\Andrea\Desktop\LVCNR~1\pawno\include\sscanf2.inc(103) : error 017: undefined symbol "IsPlayerNPC"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
pawn Код:
public OnPlayerConnect(playerid)
{
    new
        name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof (name));
    SSCANF_Join(playerid, name, IsPlayerNPC(playerid)); //line 103 in sscanf2 include
    if (SSCANF_gOPDC)
    {
        /*#emit PUSH.S   playerid
        #emit PUSH.C   4
        #emit LCTRL    6
        #emit ADD.C    28
        #emit PUSH.pri
        #emit LOAD.pri SSCANF_gOPC
        #emit SCTRL    6
        #emit RETN*/

        return CallLocalFunction("SSCANF_OnPlayerConnect", "i", playerid);
    }
    return 1;
}
I have the latest version of sscanf
Reply
#2

I have no other questions but... open up C:\DOCUME~1\Andrea\Desktop\LVCNR~1\pawno\include\a _samp.inc and make sure you're actually on version 0.3 or higher.
Reply
#3

yeah using 0.3d-R2
Reply
#4

bump
Reply
#5

Can anyone help?
Reply
#6

You need the last a_samp.
Put it in pawno/includes and double click on pawno.exe(on pwn where u have the last a_samp) and open the script from pawno directly.
Maybe you are using another pawno from pc.
Reply
#7

If you do have the latest a_samp make sure it's loaded before IsPlayerNPC is called.
Reply
#8

thanks tzaks and blank

+rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)