Problem fixes.incc - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem fixes.incc (
/showthread.php?tid=655504)
[help] a problem with include (fixes.inc) -
RedGun2015 - 22.06.2018
I've inclured 'fixes.inc' in my gamemode, everytings fine, but my function (FormatNumber) doesn't work..
When i have a number 412321, this function will format the numbers to something like this: 412,321, but after i've included the fixes.inc, it does not work anymore.
Image:
https://i.imgur.com/9rDOgFu.png
Before including fixes.inc:
https://i.imgur.com/0gvnrNt.png
Is there a fix?
BTW:
I've got this message:
https://pastebin.com/5u8p7maK
I know I could just to add after include
#define FIXES_ServerVarMsg 0 , but how can I make to work? Where should I download the
DANGEROUS_SERVER_ROOT/server.cfg ? My server is runing on linux and i really don't know where should i use the follow cmd in order to make ServerVarMsg to work (ln -s .. DANGEROUS_SERVER_ROOT )
Re: Problem fixes.incc -
RedGun2015 - 22.06.2018
Quote:
Originally Posted by ******
We can't really help without seeing the code for that function.
|
1)
https://pastebin.com/cRhmfb7B (example:
https://pastebin.com/UcKJKVfw )
2)
https://pastebin.com/NUAqSabj (example:
https://pastebin.com/20Sm5Jrb )
Second function is from AbyssMorgan's include that i'm using on bank money system (to have more than 2kkk in bank) >
https://sampforum.blast.hk/showthread.php?tid=598933 (here is the include
https://pastebin.com/8NhzR8Um from AbyssMorgan's topic)
Re: Problem fixes.incc -
RedGun2015 - 23.06.2018
bump
Re: Problem fixes.incc -
RedGun2015 - 24.06.2018
bump
Re: Problem fixes.incc -
RedGun2015 - 25.06.2018
Quote:
Originally Posted by ******
I looked in to this - your code is wrong:
strins(tStr,separator[0],iPos,1);
You are specifying the max length of the output as `1`, which doesn't fit anything in. The fact that strins used to ignore that is a bug that was fixed by fixes.inc.
|
So, you can tell me what should I do, what number should I put/use there, for that functions to work, please?
Re: Problem fixes.incc -
RedGun2015 - 26.06.2018
Quote:
Originally Posted by ******
Well nothing, the default is correct.
|
Thanks, is working now!