Pawn compiler library crashing when adding these stocks!!
#1

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

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

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
Reply
#4

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
Reply
#5

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)