01.04.2015, 10:30
Hello.
When I use SetPlayerAttachedObject, the object don't show (like invisible)
List of objects:
And then:
I can see edition mode, but I can't see the object
When I use SetPlayerAttachedObject, the object don't show (like invisible)
Code:
new tc_Caps[][]=
{
{"Cap 1", 19162},
{"Cap 2", 19161}
};
Code:
for(new i, z = sizeof tc_Caps; i < z; i++)
{
if !i *then
format(items, 50, "%s", tc_Caps[0][0]);
else
format(items, 50, "\n%s", tc_Caps[i][0]);
strcat(string, items);
}
SPD(playerid, d_25, DIALOG_STYLE_LIST, #obj, string, #ok, #close);
Code:
if dialogid == d_25 *then
{
SetPlayerAttachedObject(playerid, 6+listitem, tc_Caps[listitem][1], 2);
EditAttachedObject(playerid, 6+listitem);
}

