05.09.2013, 23:54
(
Последний раз редактировалось Pottus; 06.09.2013 в 00:37.
)
You can script a maploader and read from file but that is really not needed until you have a lot of objects 10000+.
I would just use y_hooks and keep making a new include for every map.
https://sampforum.blast.hk/showthread.php?tid=166016
Create a new folder in your gamemode folder called maps and put your includes in there then all you need to do is add them to your gamemode script like this.
This is by far the best way to organize your maps if one is a problem all you need to do is comment it out without any other effort which is a good thing.
As for that error you tried to use a function that didn't exist perhaps you didn't load a plugin ?
I would just use y_hooks and keep making a new include for every map.
https://sampforum.blast.hk/showthread.php?tid=166016
Create a new folder in your gamemode folder called maps and put your includes in there then all you need to do is add them to your gamemode script like this.
pawn Код:
#include "maps\map1.pwn"
#include "maps\map2.pwn"
#include "maps\map3.pwn"
#include "maps\map4.pwn"
As for that error you tried to use a function that didn't exist perhaps you didn't load a plugin ?