03.10.2015, 22:11
Did you even compile it? Did the code you put even compile to start with? I just tested it my self and it compiled perfectly. It's on your end.
Compiled 100% fine.
pawn Код:
main()
{
LoadNewMap();
}
#define MAX_MAP_FILES (5)
new mapid,
LastMapStarted;
stock LoadNewMap()
{
new file[64];
LastMapStarted = mapid;
mapid = mapid==MAX_MAP_FILES?(1):(mapid+1);
format(file, sizeof(file), "/Maps/%d.ini", mapid);
if(!fexist(file)) return printf("[NOTICE] File Bugged.");
return mapid;
}