Skip to content

Commit

Permalink
fallback to array base
Browse files Browse the repository at this point in the history
  • Loading branch information
Kxnrl committed Apr 20, 2020
1 parent 3fedb99 commit 6b597a6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions include/store.inc
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ enum Store_Item
bool:bVIP
}

enum struct SkinData_t
enum SkinData_t
{
char m_Name[ITEM_NAME_LENGTH];
char m_UId[32];
char m_Skin[128];
char m_Arms[128];
String:m_Name[ITEM_NAME_LENGTH],
String:m_UId[32],
String:m_Skin[128],
String:m_Arms[128]
}

native int Store_RegisterHandler(const char[] type, Function mapstart, Function reset, Function config, Function use, Function remove, bool equipable = true, bool raw = false, bool disposable = false);
Expand Down
10 changes: 5 additions & 5 deletions store.sp
Original file line number Diff line number Diff line change
Expand Up @@ -960,12 +960,12 @@ public any Native_GetClientPlayerSkins(Handle myself, int numParmas)

for (int i = 0; i < g_iItems; i++)
{
SkinData_t s;
if (g_iItems[i][iHandler] == handler && GetSkinData(i, s.m_Skin, s.m_Arms))
any s[SkinData_t];
if (g_iItems[i][iHandler] == handler && Store_HasClientItem(client, i) && GetSkinData(i, s[m_Skin], s[m_Arms]))
{
strcopy(s.m_Name, 64, g_iItems[i][szName]);
strcopy(s.m_uid, 32, g_iItems[i][szUniqueId]);
array.PushArray(s, sizeof(SkinData_t));
strcopy(s[m_Name], 64, g_iItems[i][szName]);
strcopy(s[m_uid], 32, g_iItems[i][szUniqueId]);
array.PushArray(s[0]);
}
}

Expand Down

0 comments on commit 6b597a6

Please sign in to comment.