About #include
#1

Hello folks..

I really curious about #include, let's say we have this code

Код:
public OnGameModeInit()
{
#include "load_object.pwn"
#include "load_textdraw.pwn"
}
load_object.pwn file is empty
textdraw from load_textdraw.pwn not loading, but if i put load_textdraw.pwn before load_object.pwn then textdraw is loaded.. i don't understand..

can someone explain to me when and where i can use #include and when or where can't?

Sorry for english..
Reply
#2

Put the #include s at the top of the script, NOT inside a callback (such as OnGameModeInit), look where #include <a_samp> is, and put it under that.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)