Includes Problems
#1

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 ?
Reply
#2

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.
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: