Loadfs and unloadfs problem
#1

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.

Код:
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;
}
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.
Reply
#2

yes this is a samp bug

you can fix this when you use the ysf plugin from the plugin section
Reply
#3

thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)