SA-MP Forums Archive
Attached object dont show - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Attached object dont show (/showthread.php?tid=569630)



Attached object dont show - JM_Millers - 01.04.2015

Hello.
When I use SetPlayerAttachedObject, the object don't show (like invisible)

Code:
new tc_Caps[][]=
{
    {"Cap 1", 19162},
    {"Cap 2", 19161}
};
List of objects:
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);
And then:
Code:
if dialogid == d_25 *then
{
    SetPlayerAttachedObject(playerid, 6+listitem, tc_Caps[listitem][1], 2);
    EditAttachedObject(playerid, 6+listitem);
}
I can see edition mode, but I can't see the object


Re: Attached object dont show - JM_Millers - 04.04.2015

Help