Includes Problems - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Includes Problems (
/showthread.php?tid=95511)
Includes Problems -
XtremeChio - 03.09.2009
Hey,
I downloaded 0.3 Windows package and I succesfully made my 0.2 version to work in 0.3
As soon as I added anything new from 0.3, like SetPlayerDrunk level - I keep getting undefined symbol 'SetPlayerDrunkLevel' - Same with any other
These are my defines
pawn Код:
#include <a_samp>
#include <dini>
#include <dudb>
#include <MidoStream>
#include <gl_common>
I get the error that it cannot read from g_common - But I have copied and did all like supposed to
For example I added this cmd
pawn Код:
if (strcmp(cmdtext, "/drink", true) == 0)
{
SetPlayerDrunkLevel (playerid, 5000);
SendClientMessage(playerid, 0xFFFFFFAA, "You're now drunk");
return 1;
}
Then I get the undefined smybol shit.
These are my files:
filterscripts = All the FSs
gamemodes = My GM
include = It has gl_common and gl_spawns
npcmodes = Like when you download
pawno = dll's and that stuff. Also has the include map in which the gl's arent'. I put em in, same stuff
scriptfiles = All scriptfiles I need
samp-npc
samp-server
samp_log
server.cfg
I always get the error when I try to script something new :S What is it ?
Re: Includes Problems -
JaTochNietDan - 03.09.2009
Try opening Pawno.exe in that folder, and then click the open button in Pawno.exe, select your script and try to compile. Also make sure that the new includes that come with the 0.3 package are in the /pawno/includes folder.
Re: Includes Problems -
XtremeChio - 03.09.2009
Quote:
|
Originally Posted by JaTochNietDan
Try opening Pawno.exe in that folder, and then click the open button in Pawno.exe, select your script and try to compile. Also make sure that the new includes that come with the 0.3 package are in the /pawno/includes folder.
|
Perfect, this helped me ! Thanks a lot man

Finally I can start scripting in the 0.3