Problem fixes.incc
#1

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 )
Reply
#2

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)
Reply
#3

bump
Reply
#4

bump
Reply
#5

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?
Reply
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
Well nothing, the default is correct.
Thanks, is working now!
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)