SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 02/01/2015, 03:07 PM   #21
DialUp
Big Clucker
 
DialUp's Avatar
 
Join Date: Jan 2014
Location: SIL, Russia
Posts: 102
Reputation: 144
Default Re: S-ART [place any picture on the map like an object!]

Quote:
Originally Posted by Lordzy View Post
I haven't checked the plugin source but from what I've seen on the include, the invoke function could work wrongly in some cases (where the object created under invoke might not be the 1st server created object)
Code:
	CreateObject(0,0.0,0.0,0.0,0.0,0.0,0.0); 
    SetObjectMaterialText(0, Var, 0, OBJECT_MATERIAL_SIZE_512x512, "Webdings", 35, 0, 0, 0, 0);
	SetObjectMaterial(0, 1, -1, "none", "none", 0);
	DestroyObject(0);

You've declared a variable named "Var" but never used it, I suppose it was meant to save object IDs. The above code simply sets material text and textures object ID of 0 value, which may not be the object ID which was created under invoke function.
that's just part of Incognito's invoke - plugin needs to get functions adresses.

Quote:
Probably you need to increase your Z position because SA-MP art is a very very big rectangle and if you use same position as your player it should be under the ground... try z + 50.0
the position of art is center of it - at least, half of the picture should be above ground

Quote:
Strange, it doesn't work. No errors in console, but no image either. My code:
have you loaded the plugin?
Quote:
" S-ART plugin was loaded
__________________
Let's make the custom world!
[place any picture in game with SAMP art include!!]
DialUp is offline   Reply With Quote
Old 02/01/2015, 03:15 PM   #22
n0minal
Banned
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 4,100
Reputation: 704
Default Re: S-ART [place any picture on the map like an object!]

Quote:
Originally Posted by DialUp View Post
that's just part of Incognito's invoke - plugin needs to get functions adresses.


the position of art is center of it - at least, half of the picture should be above ground
Hmm ok, how many objects uses the plugin if i use an little rectangle image like 200x100?
n0minal is offline   Reply With Quote
Old 02/01/2015, 03:17 PM   #23
DialUp
Big Clucker
 
DialUp's Avatar
 
Join Date: Jan 2014
Location: SIL, Russia
Posts: 102
Reputation: 144
Default Re: S-ART [place any picture on the map like an object!]

Quote:
Originally Posted by n0minal View Post
Hmm ok, how many objects uses the plugin if i use an little rectangle image like 200x100?
[200/15] = 14
[100/15] = 7
14*7 = 98 objects total
__________________
Let's make the custom world!
[place any picture in game with SAMP art include!!]
DialUp is offline   Reply With Quote
Old 02/01/2015, 04:31 PM   #24
DialUp
Big Clucker
 
DialUp's Avatar
 
Join Date: Jan 2014
Location: SIL, Russia
Posts: 102
Reputation: 144
Default Re: S-ART [place any picture on the map like an object!]

I haven't found how to call CreateDynamicObject from my plugin, invoke doesnt work with external things.

If somebody knows how to make it working with streamer, pls tell
__________________
Let's make the custom world!
[place any picture in game with SAMP art include!!]
DialUp is offline   Reply With Quote
Old 02/01/2015, 05:35 PM   #25
n0minal
Banned
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 4,100
Reputation: 704
Default Re: S-ART [place any picture on the map like an object!]

Quote:
Originally Posted by DialUp View Post
[200/15] = 14
[100/15] = 7
14*7 = 98 objects total
LOL only 98? I'll use this plugin right now!
n0minal is offline   Reply With Quote
Old 02/01/2015, 05:37 PM   #26
n0minal
Banned
 
Join Date: Mar 2013
Location: Rio de Janeiro
Posts: 4,100
Reputation: 704
Default Re: S-ART [place any picture on the map like an object!]

Quote:
Originally Posted by n0minal View Post
LOL only 98? I'll use this plugin right now!
@hmmm does the source rar contains the compiled dll file? Or i have to compile it?

#edit sorry for wrong double post

@staffs: delete it please
n0minal is offline   Reply With Quote
Old 02/01/2015, 05:44 PM   #27
DialUp
Big Clucker
 
DialUp's Avatar
 
Join Date: Jan 2014
Location: SIL, Russia
Posts: 102
Reputation: 144
Default Re: S-ART [place any picture on the map like an object!]

yes, it has built library file and the include file
Code:
build/SART.dll
build/s-art.inc
__________________
Let's make the custom world!
[place any picture in game with SAMP art include!!]
DialUp is offline   Reply With Quote
Old 02/01/2015, 06:06 PM   #28
Dampyr
Little Clucker
 
Join Date: Feb 2013
Posts: 26
Reputation: 0
Default Re: S-ART [place any picture on the map like an object!]

I've maked a pre-compiled version of this plugin for windows server,

Link: https://www.dropbox.com/s/30huawjibg77vwp/SART.rar?dl=0

(Plugin + Include)

Credits to DialUp

Ps. Im going to compile for Linux version
__________________
Dampyr is offline   Reply With Quote
Old 02/01/2015, 06:09 PM   #29
DialUp
Big Clucker
 
DialUp's Avatar
 
Join Date: Jan 2014
Location: SIL, Russia
Posts: 102
Reputation: 144
Default Re: S-ART [place any picture on the map like an object!]

Quote:
Originally Posted by Dampyr View Post
I've maked a pre-compiled version of this plugin for windows server,

Link: https://www.dropbox.com/s/30huawjibg77vwp/SART.rar?dl=0

(Plugin + Include)

Credits to DialUp

Ps. Im going to compile for Linux version
you have just copied two files from my archive -_-

but yes, the Linux one will be useful
__________________
Let's make the custom world!
[place any picture in game with SAMP art include!!]
DialUp is offline   Reply With Quote
Old 02/01/2015, 06:15 PM   #30
Dampyr
Little Clucker
 
Join Date: Feb 2013
Posts: 26
Reputation: 0
Default Re: S-ART [place any picture on the map like an object!]

Ops sorry i dont see the links in your old post,
my nab connection
__________________
Dampyr is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Object ! [Picture] ! dorperez Scripting Help 4 17/11/2011 08:29 PM
i need the id of the object : (Including picture) BurnOutt Help Archive 5 16/05/2010 07:12 PM
What's A object ID (Have Picture) maximus_corleone Help Archive 1 20/03/2010 12:59 PM
What is the object id of this picture? gtapolicemods Help Archive 2 18/02/2010 02:46 AM
I Need Object ID - Glass & Picture CamelJoe Help Archive 27 17/04/2009 09:41 PM


All times are GMT. The time now is 10:07 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.