Script cant read the includes!
#1

PHP код:
C:\Users\JIMPZA\Desktop\Kaikki santun scriptit\ngg\gamemodes\NGRP.pwn(20) : fatal error 100cannot read from file"./includes/defines.pwn"
Compilation aborted.Pawn compiler 3.2.3664              Copyright (c1997-2006ITB 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..
Reply
#2

Use .inc for your includes. If you want files from pawno/includes, it'd simply be
pawn Код:
#include <defines>
If you want files from gamemodes/includes, then it'd be
pawn Код:
#include "..\..\gamemodes\includes\defines"
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)