Ez nem a hiba, hanem a hibás kód, pontosabban ahol hibába ütközik a kód futás közben.
Mert ez a sor szintaktikailag helyes, csak valamelyik változó értéke nem megfelelő.
A hiba üzenet tartalma fontos, nem csak a sor-száma.
text = text:gsub('\\','') -- don't work
probably this is the good one, but your debug tests are wrong, because:
local text = 'aaa\bbb'
In this string \ is not a character, I mean its not a simple backslash.
Because its "interact" with the next b. So \b this two character is "one" special character.
Just make a button, and when you click it, simply call a function what loop trough all players and give weapons for everybody.
Don't deal with the gridlist, if you want to give something to everybody.
Hi!
You should open an issue on GitHub, and not here because it's a scripting related forum section.
Link: https://github.com/multitheftauto/mtasa-blue/issues
I'll close your post.
getElementsWithinColShape return every players who stay in the colshape in array, you should use isElementWithinColShape to check for a specific player.