21.02.2009, 15:25
Hi,
I have a big problem. When reloadfs/loadfs/unloadfs 3 times, then, the server says "loadfs failed".
This happens because the "unloadfs" don't discount the FS. for example, i have 1 FS in server.cfg file, and i reload the FS 15 times, the samp server at 16 time say "loadfs problem" becausse don't discount FSs, but count.
I made a example with a var in pawn.
For pawn students, there is a example that samp-server is programmed , but the example is in pawn , the problem is that currentfs++ , but currentfs don't -- XD.
Warning:The example is just for you to understand my problem
UnloadFS rcon command have this problem. I can fix it ? ., please help.
I have a big problem. When reloadfs/loadfs/unloadfs 3 times, then, the server says "loadfs failed".
This happens because the "unloadfs" don't discount the FS. for example, i have 1 FS in server.cfg file, and i reload the FS 15 times, the samp server at 16 time say "loadfs problem" becausse don't discount FSs, but count.
I made a example with a var in pawn.
Код:
new maxfs=16; new currentfs; public OnRconCommand(playerid,cmd[]){ if(stmcp(cmd,"loadfs",true)==0){ if(currentfs<=maxfs){ currentfs++; loadfs("example"); } return 1; } if(stmcp(cmd,"unloadfs",true)==0){ unloadfs("example"); return 1; } return 0; }
Warning:The example is just for you to understand my problem
UnloadFS rcon command have this problem. I can fix it ? ., please help.