1
Modifications / Re: Have a question about Modding? Ask Here!
« on: June 03, 2019, 05:22:48 pm »Code
(try_begin),
(player_get_unique_id, ":player_key", ":agent_no"),
(agent_is_active, ":agent_no"),
(eq, ":player_key", 1524646),
(agent_equip_item,":agent_no","itm_pirate_hat"),
(try_for_players, ":player_no", 1),
(agent_is_active, ":player_no"),
(multiplayer_send_3_int_to_player, ":player_no", multiplayer_event_return_agent_set_item, ":agent_no", "itm_pirate_hat", 4),
(try_end),
(try_end),
I'm trying to set specific player hats upon joining
Code
SCRIPT WARNING ON OPCODE 441: Invalid Player ID: 15; LINE NO: 19:
Upon joining the server is spammed with the error above Sorry if the code is dumb I'm still learning