General > Developers Corner

attempt to index a string value with bad key

<< < (2/2)

iViscosity:
On a related note, I have a question about the weapons logging I have in there (the table.insert( weps, k )). If I'm going to be storing the weapons a target has, should I be inserting the key or the value to give it back to them later with ply:Give()? Or is there another way and this was just won't work?

JamminR:
Maybe I don't understand what you're doing.
Why not use Player:GetWeapons and store that table for use later to Give?

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given

[0] Board index

Go to full version