I need help with Spawnwep

Started by Gito Baloch, Feb 14, 2020, 04:33 PM

Previous topic - Next topic

Gito Baloch

i added macTavish's spawnwep system then im getting error in it :(
i need Help
Programming is the language I speak, the world I shape, and the future I code

Sebastian

We are not Wizards.
You need to tell us what error you get, and on which line

Gito Baloch

i am getting this:
AN ERROR HAS OCCURED [the index 'ID' does not exist]

CALLSTACK
*FUNCTION [onPlayerJoin()] scripts/main.nut line [286]

LOCALS
[country] "Local-Host"
[player] INSTANCE
[this] TABLE
[the index 'ID' does not exist][286][country][player][this]

286th line is: loadspawnwep(player.Name,ID);
Programming is the language I speak, the world I shape, and the future I code

Sebastian

I hope need to replace "ID" with "player.ID" on that line.

Gito Baloch

Solved - Helped by AlecuMadalin32

Locked.
Programming is the language I speak, the world I shape, and the future I code