SA-MP Forums Archive
Tag mismatch on CreateObject to Array? - 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: Tag mismatch on CreateObject to Array? (/showthread.php?tid=438202)



Tag mismatch on CreateObject to Array? - Hoborific - 19.05.2013

pawn Код:
Presents[i][3] = CreateObject(snip);
        Presents[i][4] = CreateObject(snip);

....

        DestroyObject(Presents[i][3]); // warning 213: tag mismatch
        DestroyObject(Presents[i][4]); // warning 213: tag mismatch
Ideas?


Re: Tag mismatch on CreateObject to Array? - Avi Raj - 19.05.2013

Replace
pawn Код:
CreateObject(snip);
With
pawn Код:
CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ, Float:DrawDistance);



Re: Tag mismatch on CreateObject to Array? - Hoborific - 19.05.2013

No you crankhead, I removed my objects for a reason, I clearly stated the problem is the tag mismatch. not the objects.


Re: Tag mismatch on CreateObject to Array? - Littlehelper - 19.05.2013

Quote:
Originally Posted by Hoborific
Посмотреть сообщение
pawn Код:
Presents[i][3] = CreateObject(snip);
        Presents[i][4] = CreateObject(snip);

....

        DestroyObject(Presents[i][3]); // warning 213: tag mismatch
        DestroyObject(Presents[i][4]); // warning 213: tag mismatch
Ideas?
Show me your "new Presents[x][x]" please?