14.09.2018, 16:56
hi, i'm using PreviewModelDialog include and i have problem second line list of skins
skins don't have name and price tag
what can i do?
skins don't have name and price tag
PHP код:
enum E_SKIN_SHOP_DATA {
SKIN_MODELID,
SKIN_NAME[1024],
SKIN_PRICE,
SKIN_SLOT
};
new const SKIN_SHOP[][E_SKIN_SHOP_DATA] = {
{20101, "Name", 1000,4},
{20103, "Name", 800,0},
{20104, "Name", 800,1},
{20105, "Name", 800,2},
{20106, "Name", 800,3},
{20108, "Name", 900,5},
{20109, "Name", 800,6},
{20110, "Name", 1000,7},
{20111, "Name", 1100,8},
{20112, "Name", 1200,9},
{20113, "Name", 1200,10},
{20114, "Name", 2000,11},
{20115, "Name", 2000,12}
};
PHP код:
for (new i; i < sizeof(SKIN_SHOP); i++)
{
format(string, sizeof string, "%s%i(0.0, 0.0, 0.0, 1.5)\t%s~n~~g~~h~$%i\n", string, SKIN_SHOP[i][SKIN_MODELID], SKIN_SHOP[i][SKIN_NAME], SKIN_SHOP[i][SKIN_PRICE]);
}