Gamemode #include parts not running
#1

Hey SA-MP community I've been working on gamemode for 2 days now and gamemodes has a problem that i can't fix gamemode is split into many #include parts. I couldn't manage to make all the "#include" parts work for example when I take "admin.pwn" in the beginning of the list only admin commands work and .etc.

Thanks for helping me.

Here is the list of "#includes":
Код:
#include "wcrp\utils.pwn"
#include "wcrp\textdraws.pwn"
#include "wcrp\colourcodes.pwn"
#include "wcrp\admin.pwn"
#include "wcrp\account.pwn" //account/character related functions get forwarded here
#include "wcrp\weather.pwn"
#include "wcrp\rp.pwn" //generic RP related stuff here(such as /me, /do)
#include "wcrp\anticheat.pwn"
#include "wcrp\vehicles.pwn"
#include "wcrp\fishing.pwn"
#include "wcrp\business.pwn"
#include "wcrp\interiors.pwn"
#include "wcrp\families.pwn"
#include "wcrp\houses.pwn"
#include "wcrp\jobs.pwn"
#include "wcrp\safes.pwn"
#include "wcrp\points.pwn"
#include "wcrp\turfs.pwn"
#include "wcrp\VIP.pwn"
#include "wcrp\accessories.pwn"
#include "wcrp\hospital.pwn"
#include "wcrp\factions.pwn"
#include "wcrp\mapping.pwn" //generic NON-DONATOR mapping
#include "wcrp\anims.pwn"
#include "wcrp\gov.pwn"
#include "wcrp\training.pwn"
#include "wcrp\paintball.pwn"
#include "wcrp\boxing.pwn"
#include "wcrp\cameras.pwn"
#include "wcrp\lockers.pwn"
#include "wcrp\IRC.pwn"
#include "wcrp\seatbelt.pwn"
#include "wcrp\anticbug.pwn"
#include "wcrp\help.pwn"
#include "wcrp\logging.pwn"
#include "wcrp\npc.pwn"
#include "wcrp\GPS.pwn"
#include "wcrp\radio.pwn"
#include "wcrp\keybinder.pwn"
#include "wcrp\donatormapping.pwn"
#include "wcrp\plants.pwn"
#include "wcrp\forumsync.pwn"
#include "wcrp\itemdropping.pwn"
#include "wcrp\illegalbusiness.pwn"
#include "wcrp\bomb.pwn"
#include "wcrp\disease.pwn"
#include "wcrp\racing.pwn"
#include "wcrp\externalfuncs.pwn" //functions for use with CallRemoteFunction in other scripts
#include "wcrp\lotto.pwn"
#include "wcrp\housefurniture.pwn"
#include "wcrp\evidencesystem.pwn" //Must be before the damage system
#include "wcrp\damagesystem.pwn"
#include "wcrp\payphones.pwn" //Payphones
#include "wcrp\apartments.pwn" //Apartments
#include "wcrp\gunfactory.pwn" //Gun factory, including dialogs
#include "wcrp\walltags.pwn" //Wall tags (families only)
#include "wcrp\specialitems.pwn"
#include "wcrp\hunger.pwn"
#include "wcrp\votekick.pwn"
#include "wcrp\speedtraps.pwn"
#include "wcrp\fpscamplusdb.pwn"
#include "wcrp\sqlqueries.pwn"
#include "wcrp\cartoys.pwn"
#include "wcrp\basketball.pwn"
#include "wcrp\cheats.pwn"
#include "wcrp\events.pwn"
#include "wcrp\servermottos.pwn" //Server auto namechanger
Reply
#2

There is a limit on includes too, you cant base your gamemode on extern fs
Reply
#3

So what's your advice ?
Reply
#4

Quote:
Originally Posted by Rodri99
Посмотреть сообщение
There is a limit on includes too, you cant base your gamemode on extern fs
Any proofs? i have never heard that before. i think you are wrong.
Reply
#5

You should use / instead of \.

So instead of doing:

pawn Код:
#include "wcrp\utils.pwn"
#include "wcrp\textdraws.pwn"
#include "wcrp\colourcodes.pwn"

You could try:

pawn Код:
#include "wcrp/utils.pwn"
#include "wcrp/textdraws.pwn"
#include "wcrp/colourcodes.pwn"
Reply
#6

Still not working ... Thanks for the help though.
Reply
#7

Quote:
Originally Posted by CoachCarter
Посмотреть сообщение
Still not working ... Thanks for the help though.
You used the correct way, the problem is that includes are supposed to end with .inc not .pwn so go to each include save it as .inc and put it in your includes folder in pwn.
Reply
#8

Does it throw an error? when you change the / \, if no so there is no problem with \ & /.

those gamemode does it communicate with them self, what i mean is:
like
utils.pwn does it need textdraws.pwn or some other includes?

you can try "../x/x.pwn"
Reply
#9

Quote:
Originally Posted by DarkLored
Посмотреть сообщение
You used the correct way, the problem is that includes are supposed to end with .inc not .pwn so go to each include save it as .inc and put it in your includes folder in pwn.
It's still not working, I changed every .pwn to .inc pasted them in /pawno/includes/wcrp/ and changed .pwn endings inside with .inc inside my pwn file but it's still the same only half of the gamemode is running

Quote:
Originally Posted by Freezo
Посмотреть сообщение
Does it throw an error? when you change the / \, if no so there is no problem with \ & /.

those gamemode does it communicate with them self, what i mean is:
like
utils.pwn does it need textdraws.pwn or some other includes?

you can try "../x/x.pwn"
Already tried that :P .. we have the same logic pal ..
Reply
#10

Can anyone help i really need it ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)