Include Error - 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: Include Error (
/showthread.php?tid=330476)
Include Error [REP +] -
Plastic - 01.04.2012
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
Re: Include Error -
AndreT - 01.04.2012
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.
Re: Include Error -
Plastic - 01.04.2012
yeah using 0.3d-R2
Re: Include Error -
Plastic - 01.04.2012
bump
Re: Include Error -
Plastic - 02.04.2012
Can anyone help?
Re: Include Error -
TzAkS. - 02.04.2012
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.
Re: Include Error -
blank. - 02.04.2012
If you do have the latest a_samp make sure it's loaded before IsPlayerNPC is called.
Re: Include Error -
Plastic - 02.04.2012
thanks tzaks and blank
+rep