[Tool/Web/Other] SA:MP Object Definer
#1

Hi,
I've made a tool which assigns a CreateObject ID (the ID which is returned) to an integer string. Hmm that's not clear enough. Example:
I have these objects:
pawn Код:
CreateObject(7191, 264.07342529297, 1881.6575927734, -6.2552056312561, 270.25024414063, 0, 0);
CreateObject(7191, 264.08120727539, 1885.5596923828, -6.2552056312561, 270.24719238281, 0, 0);
CreateObject(7191, 264.07913208008, 1886.9434814453, -6.2552056312561, 270.24719238281, 0, 0);
CreateObject(7191, 265.77478027344, 1888.6229248047, -6.2552056312561, 270.2470703125, 0, 269.5);
CreateObject(7191, 269.59817504883, 1888.6110839844, -6.2552056312561, 270.24169921875, 0, 269.49462890625);
And the output is:
pawn Код:
#include <a_samp>

new {obj}[5];

stock SetupObjects()
{
    {obj}[0] = CreateObject(7191, 264.07342529297, 1881.6575927734, -6.2552056312561, 270.25024414063, 0, 0);
    {obj}[1] = CreateObject(7191, 264.08120727539, 1885.5596923828, -6.2552056312561, 270.24719238281, 0, 0);
    {obj}[2] = CreateObject(7191, 264.07913208008, 1886.9434814453, -6.2552056312561, 270.24719238281, 0, 0);
    {obj}[3] = CreateObject(7191, 265.77478027344, 1888.6229248047, -6.2552056312561, 270.2470703125, 0, 269.5);
    {obj}[4] = CreateObject(7191, 269.59817504883, 1888.6110839844, -6.2552056312561, 270.24169921875, 0, 269.49462890625);
    return 1;
}
The '{obj}' is the name of the string, this is user defined (input type="text"). If that one's empty, it'll be 'obj'.

The webtool
The webtool can be found here: http://samp.rpdsamp.nl/ODF/
The download is also avaible (see below), but why would you upload it to your own site if you simply can use this one? :P

Download
Well the download link: http://get.rpdsamp.nl/gta/sa/mp/scri...script/ODF.zip

Regards,
Kevin
Reply


Messages In This Thread
SA:MP Object Definer - by Kwarde - 12.07.2011, 15:11
Re: SA:MP Object Definer - by tbedy - 12.07.2011, 15:32
Re: SA:MP Object Definer - by IstuntmanI - 12.07.2011, 15:32
Re: SA:MP Object Definer - by Kwarde - 12.07.2011, 19:38
Re: SA:MP Object Definer - by Patrik356b - 12.07.2011, 19:42
Re: SA:MP Object Definer - by Michael@Belgium - 12.07.2011, 20:00
Re: SA:MP Object Definer - by ChickenInDark - 28.11.2011, 13:54
Re: SA:MP Object Definer - by Kwarde - 28.11.2011, 15:38
Re: SA:MP Object Definer - by |_ⒾⓇⓄN_ⒹⓄG_| - 28.11.2011, 15:55
Re: SA:MP Object Definer - by GangsTa_ - 28.11.2011, 15:59
Re: SA:MP Object Definer - by Kwarde - 28.11.2011, 16:19
Re: SA:MP Object Definer - by justsomeguy - 28.11.2011, 16:30
Re: SA:MP Object Definer - by Michael@Belgium - 28.11.2011, 16:37
Re: SA:MP Object Definer - by Kwarde - 28.11.2011, 17:53
Re: SA:MP Object Definer - by justsomeguy - 28.11.2011, 18:01
Re: SA:MP Object Definer - by Kwarde - 28.11.2011, 18:38
AW: SA:MP Object Definer - by C0dy09 - 28.11.2011, 19:09

Forum Jump:


Users browsing this thread: 2 Guest(s)