Script cant read the includes! - 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: Script cant read the includes! (
/showthread.php?tid=490631)
Script cant read the includes! -
Moneymachine - 27.01.2014
PHP код:
C:\Users\JIMPZA\Desktop\Kaikki santun scriptit\ngg\gamemodes\NGRP.pwn(20) : fatal error 100: cannot read from file: "./includes/defines.pwn"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP код:
#define SERVER_GM_TEXT "MC:RP v5.7"
#include <a_samp>
#include <a_mysql>
#include <streamer>
#include <yom_buttons>
#include <ZCMD>
#include <sscanf2>
#include <foreach>
#include <YSI\y_timers>
#include <YSI\y_utils>
#if defined SOCKET_ENABLED
#include <socket>
#endif
#include "./includes/defines.pwn"
#include "./includes/enums.pwn"
#include "./includes/variables.pwn"
#include "./includes/timers.pwn"
#include "./includes/functions.pwn"
#include "./includes/commands.pwn"
#include "./includes/mysql.pwn"
#include "./includes/OnPlayerLoad.pwn"
#include "./includes/callbacks.pwn"
#include "./includes/textdraws.pwn"
#include "./includes/streamer.pwn"
#include "./includes/OnDialogResponse.pwn"
main() {}
public OnGameModeInit()
{
Why cant it read the include files? i have compiled all of the includes without any errors or warnings..
Re: Script cant read the includes! -
Misiur - 27.01.2014
Use .inc for your includes. If you want files from pawno/includes, it'd simply be
If you want files from gamemodes/includes, then it'd be
pawn Код:
#include "..\..\gamemodes\includes\defines"