Vice City: Multiplayer

Server Development => Scripting and Server Management => Topic started by: Gito Baloch on Feb 14, 2020, 04:33 PM

Title: I need help with Spawnwep
Post by: Gito Baloch on Feb 14, 2020, 04:33 PM
i added macTavish's spawnwep system then im getting error in it :(
i need Help
Title: Re: I need help with Spawnwep
Post by: Sebastian on Feb 14, 2020, 09:27 PM
We are not Wizards.
You need to tell us what error you get, and on which line
Title: Re: I need help with Spawnwep
Post by: Gito Baloch on Feb 15, 2020, 08:09 AM
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);
Title: Re: I need help with Spawnwep
Post by: Sebastian on Feb 19, 2020, 10:45 PM
I hope need to replace "ID" with "player.ID" on that line.
Title: Re: I need help with Spawnwep
Post by: Gito Baloch on Feb 20, 2020, 04:59 PM
Solved - Helped by AlecuMadalin32

Locked.