Closed minhthien2563 closed 3 years ago
Hello, you haven't shown how you create messages
. That code is probably at fault.
Oh sorry.
new List:messages;
You have to create an instance of the list in order to add elements to it, for example via list_new
. Otherwise the variable will have the initial value of INVALID_LIST
(List:0
).
You can use the usual script initialization callback to create the list there, use an initializer or perform some sort of lazy loading (check if the list is INVALID_LIST
and then create it).
Hi!
I have a bit of a problem with the PawnPlus library, the error described in the console is "Run time error 10:" Native function failed "", looking forward to your help.