include
#1

Script used: Infinity freeroll
A detailed description of the problem: I have too many objects in GM (why the stunt server), so we want them off somehow to include jel I've seen on a GM, but does not include ordinary, but that include going under ongamemodeinit. How is it possible to achieve?
Part of the script: /
Pictures: /
Reply
#2

Just make an new file in your pawno includes, add the objects in it, and then do this:

pawn Код:
public OnGameModeInit()
{
   #include <location of the objects you pasted in something.inc>
   // other things in ongamemodeinit
   return 1;
}
Reply
#3

Quote:
Originally Posted by Wesley221
Посмотреть сообщение
Just make an new file in your pawno includes, add the objects in it, and then do this:

pawn Код:
public OnGameModeInit()
{
   #include <location of the objects you pasted in something.inc>
   // other things in ongamemodeinit
   return 1;
}
should look like mine. Inc. file? and whether you should put in pavno inkludes or skriptfajles?
Reply
#4

Put it with your other includes that are in your pawno.
Also, the name doesnt care
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)