Thanks! i've did it like this
Code:
public Action:OnChatMessage(&client, Handle:recipients, String:name[], String:message[])
{
if(!client)
return Plugin_Continue;
new m_iEquippedNameTag = Store_GetEquippedItem(client, "nametag");
new m_iEquippedNameColor = Store_GetEquippedItem(client, "namecolor");
new m_iEquippedMsgColor = Store_GetEquippedItem(client, "msgcolor");
if(m_iEquippedNameTag < 0 && m_iEquippedNameColor < 0 && m_iEquippedMsgColor < 0)
It's alright? im testing it right now also
EDIT: I've done as you told me (maybe i did wrong) but still having the same error log
Code:
L 05/08/2020 - 13:52:40: [SM] Blaming: store.smx
L 05/08/2020 - 13:52:40: [SM] Call stack trace:
L 05/08/2020 - 13:52:40: [SM] [1] Line 3084, F:\Users\XX\Desktop\XX\sourcemod-1.7.3-git5290-windows\addons\sourcemod\scripting\cstore.sp::Store_GetEquippedItemFromHandler
L 05/08/2020 - 13:52:40: [SM] [2] Line 778, F:\Users\XX\Desktop\XX\sourcemod-1.7.3-git5290-windows\addons\sourcemod\scripting\cstore.sp::Native_GetEquippedItem
L 05/08/2020 - 13:52:40: [SM] [4] Store_GetEquippedItem
L 05/08/2020 - 13:52:40: [SM] [5] Line 84, store/scpsupport.sp::OnChatMessage
L 05/08/2020 - 13:52:40: [SM] [7] Call_Finish
L 05/08/2020 - 13:52:40: [SM] [8] Line 296, /home/forums/content/files/2/3/7/4/6/4/172762.attach::OnSayText2
L 05/08/2020 - 13:52:40: [SM] Exception reported: Array index out-of-bounds (index -1, limit 66)
L 05/08/2020 - 13:52:40: [SM] Blaming: store.smx
L 05/08/2020 - 13:52:40: [SM] Call stack trace:
L 05/08/2020 - 13:52:40: [SM] [1] Line 3084, F:\Users\XX\Desktop\XX\sourcemod-1.7.3-git5290-windows\addons\sourcemod\scripting\cstore.sp::Store_GetEquippedItemFromHandler
L 05/08/2020 - 13:52:40: [SM] [2] Line 778, F:\Users\XX\Desktop\XX\sourcemod-1.7.3-git5290-windows\addons\sourcemod\scripting\cstore.sp::Native_GetEquippedItem
L 05/08/2020 - 13:52:40: [SM] [4] Store_GetEquippedItem
L 05/08/2020 - 13:52:40: [SM] [5] Line 84, store/scpsupport.sp::OnChatMessage
L 05/08/2020 - 13:52:40: [SM] [7] Call_Finish
L 05/08/2020 - 13:52:40: [SM] [8] Line 296, /home/forums/content/files/2/3/7/4/6/4/172762.attach::OnSayText2
What can be the cause? i don't understand why i'm the only one having this issue (i've checked this same error log and i found nothing)