Raised This Month: $ Target: $400
 0% 

Solved ArrayGetString problem.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 06-23-2020 , 05:47   Re: ArrayGetString problem.
Reply With Quote #3

Code:
_ShowItems(id) {     new temp[64];     formatex(temp, 63, "\r%s \w%L", CSGO_TAG, id, "CSGOR_ITEM_MENU");     new menu = menu_create(temp, "item_menu_handler");     new szItem[2];     szItem[1] = 0;     new total;     if (0 < g_iUserCases[id])     {         formatex(temp, 63, "\r%L \w| \y%L", id, "CSGOR_ITEM_CASE", id, "CSGOR_SM_PIECES", g_iUserCases[id]);         szItem[0] = -11;         menu_additem(menu, temp, szItem);         total++;     }     if (g_iUserKeys[id] > 0 && g_iDropType < 1)     {         formatex(temp, 63, "\r%L \w| \y%L", id, "CSGOR_ITEM_KEY", id, "CSGOR_SM_PIECES", g_iUserKeys[id]);         szItem[0] = -12;         menu_additem(menu, temp, szItem);         total++;     }     new szSkin[32];     new num;     new type[2];     for (new i; i < g_iSkinsNum; i++)     {         num = g_iUserSkins[id][i];         if (num)         {             ArrayGetString(g_aSkinName, i, szSkin, 31);             ArrayGetString(g_aSkinType, i, type, 1);             new applied[64];             switch (type[0])             {                 case 99:                 {                     applied = "#";                 }                                 default:                 {                     applied = "";                 }             }             formatex(temp, 63, "\r%s \w| \y%L \r%s", szSkin, id, "CSGOR_SM_PIECES", num, applied);             szItem[0] = i;             menu_additem(menu, temp, szItem);             total++;         }     }     if (!total)     {         formatex(temp, 63, "\r%L", id, "CSGOR_NO_ITEMS");         szItem[0] = -10;         menu_additem(menu, temp, szItem);     }     _DisplayMenu(id, menu);     return 0; }
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]

Last edited by Shadows Adi; 06-23-2020 at 05:49.
Shadows Adi is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode