Posts: 1,498
Threads: 110
Joined: Aug 2013
http://pastebin.com/fMXnNPBP#
Whenever I add these stocks the pawn compiler library crashes
I've changed the system from Dini to Y_INI and im sure there's no mistake at the code , yet I have no idea why it crashes?
Posts: 694
Threads: 2
Joined: Oct 2012
Reputation:
0
They seem pretty fine (on their own, need more code to be finished) to me, but maybe default compiler doesn't support 3D-4D arrays so thats why it crashes ? (Not sure) check around and try using sth like Test[playerid][18] to see if it fixes the problem
a couple suggestions, you are checking if something exists but doing nothing, you should use braces after if or remove the if.
another suggestion is always have your stocks end in a return so compiler won't give you a warning.
And doesn't INI systems have an open file function ? you are just writing something without opening/closing any files which makes no sense to me.
Posts: 1,498
Threads: 110
Joined: Aug 2013
Quote:
Originally Posted by PrO.GameR
They seem pretty fine (on their own, need more code to be finished) to me, but maybe default compiler doesn't support 3D-4D arrays so thats why it crashes ? (Not sure) check around and try using sth like Test[playerid][18] to see if it fixes the problem
a couple suggestions, you are checking if something exists but doing nothing, you should use braces after if or remove the if.
another suggestion is always have your stocks end in a return so compiler won't give you a warning.
And doesn't INI systems have an open file function ? you are just writing something without opening/closing any files which makes no sense to me.
|
Thanks for the reply.
About the open file function , im opening the files at stock 2 , thanks for the suggestions though.I will try something else
Posts: 6,129
Threads: 36
Joined: Jan 2009
Quote:
Originally Posted by Vince
I wish people would stop using the word "stocks". There is no such thing as "stocks". The stock keyword is a modifier which means that it can't be used on its own. It's always stock functions or stock variables but never "stocks". And by the looks of it neither function should be declared as stock. A stock function is something that you can use in each and every script and this is clearly not the case with these functions.
I don't know enough about Y_INI to give you a clear and concise answer on your actual problem, but two minutes of research has thought me that you are using INI_Int incorrectly. https://github.com/Misiur/YSI-Includ...ading.inc#L211
|
hey thanks for your rant it is hugely beneficial to the continuing of daily human function
...or stock lol
Posts: 1,498
Threads: 110
Joined: Aug 2013
Quote:
Originally Posted by Vince
I wish people would stop using the word "stocks". There is no such thing as "stocks". The stock keyword is a modifier which means that it can't be used on its own. It's always stock functions or stock variables but never "stocks". And by the looks of it neither function should be declared as stock. A stock function is something that you can use in each and every script and this is clearly not the case with these functions.
I don't know enough about Y_INI to give you a clear and concise answer on your actual problem, but two minutes of research has thought me that you are using INI_Int incorrectly. https://github.com/Misiur/YSI-Includ...ading.inc#L211
|
Thanks for the reply and the new information about stocks...
About the incorrectly use , it's supposed to be used like that.I doubt that's the reason it is crashing eitherway i've already made another inventory system