SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 04/12/2012, 09:32 AM   #1
teomakedonija
Banned
 
Join Date: Nov 2011
Posts: 405
Reputation: -46
Default SetObjectMaterialText

Hi Scripters.I need help with SetObjectMaterialText.I create this with toEdit filterscript t.e iText and now i put that code in OnPlayerConnect and Text dont showing .. i again put now on OnGameModeInit and now have errors playerid i put again now on OnPlayerLogin and again dont show please help

pawn Code:
narodna = CreateObject(playerid, 19353, 1219.2559, -1811.3831, 24.5761, 1.5999, 4.1999, -87.4399);
SetPlayerObjectMaterialText(playerid, narodna, "Narodna Banka", 0, 50, "Arial", 20, 1, -16730675, 0, 1);

pdnopark = CreateObject(playerid, 19353, 1536.7691, -1674.2576, 12.3524, -0.1000, -90.3999, -179.5713);
SetPlayerObjectMaterialText(playerid, pdnopark, "NE PARKIRAJ", 0, 50, "Arial", 24, 0, -16776961, 0, 1);

patarina = CreateObject(playerid, 19353, 77.5596, -1525.5831, 3.9618, -2.9999, -92.9999, -6.4029);
SetPlayerObjectMaterialText(playerid, patarina, "STOP", 0, 50, "Arial", 60, 1, -1, 0, 1);
teomakedonija is offline   Reply With Quote
Old 04/12/2012, 10:28 AM   #2
teomakedonija
Banned
 
Join Date: Nov 2011
Posts: 405
Reputation: -46
Default Re: SetObjectMaterialText

BUMP !
teomakedonija is offline   Reply With Quote
Old 04/12/2012, 10:50 AM   #3
Ballu Miaa
High-roller
 
Ballu Miaa's Avatar
 
Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,859
Reputation: 323
Default Re: SetObjectMaterialText

Paste these under OnGameModeInit(). You dont require playerid parameter for these functions.

pawn Code:
narodna = CreateObject(19353, 1219.2559, -1811.3831, 24.5761, 1.5999, 4.1999, -87.4399);
SetPlayerObjectMaterialText(narodna, "Narodna Banka", 0, 50, "Arial", 20, 1, -16730675, 0, 1);

pdnopark = CreateObject(19353, 1536.7691, -1674.2576, 12.3524, -0.1000, -90.3999, -179.5713);
SetPlayerObjectMaterialText(pdnopark, "NE PARKIRAJ", 0, 50, "Arial", 24, 0, -16776961, 0, 1);

patarina = CreateObject(19353, 77.5596, -1525.5831, 3.9618, -2.9999, -92.9999, -6.4029);
SetPlayerObjectMaterialText(patarina, "STOP", 0, 50, "Arial", 60, 1, -1, 0, 1);
__________________


I will take half payment as an advance to script for you.
Click here to request my Scripting Service.

Ballu Miaa is offline   Reply With Quote
Old 04/12/2012, 10:53 AM   #4
XtremeR
Gangsta
 
XtremeR's Avatar
 
Join Date: Aug 2012
Location: Australia
Posts: 896
Reputation: 565
Default Re: SetObjectMaterialText

CreateObject(playerid

playerid?

http://wiki.sa-mp.com/wiki/CreateObject
__________________
XtremeR is offline   Reply With Quote
Old 04/12/2012, 10:54 AM   #5
Ballu Miaa
High-roller
 
Ballu Miaa's Avatar
 
Join Date: Apr 2010
Location: New Delhi,India
Posts: 1,859
Reputation: 323
Default Re: SetObjectMaterialText

Quote:
Originally Posted by XtremeR View Post
CreateObject(playerid

playerid?

http://wiki.sa-mp.com/wiki/CreateObject
Even i was like : O.o seriously fella? @ThreadPoster - Use the code above.
__________________


I will take half payment as an advance to script for you.
Click here to request my Scripting Service.

Ballu Miaa is offline   Reply With Quote
Old 04/12/2012, 12:07 PM   #6
teomakedonija
Banned
 
Join Date: Nov 2011
Posts: 405
Reputation: -46
Default Re: SetObjectMaterialText

Dont working this

pawn Code:
narodna = CreateObject(19353, 1219.2559, -1811.3831, 24.5761, 1.5999, 4.1999, -87.4399);
SetPlayerObjectMaterialText(narodna, "Narodna Banka", 0, 50, "Arial", 20, 1, -16730675, 0, 1);

pdnopark = CreateObject(19353, 1536.7691, -1674.2576, 12.3524, -0.1000, -90.3999, -179.5713);
SetPlayerObjectMaterialText(pdnopark, "NE PARKIRAJ", 0, 50, "Arial", 24, 0, -16776961, 0, 1);

patarina = CreateObject(19353, 77.5596, -1525.5831, 3.9618, -2.9999, -92.9999, -6.4029);
SetPlayerObjectMaterialText(patarina, "STOP", 0, 50, "Arial", 60, 1, -1, 0, 1);
Have errors help please !
teomakedonija is offline   Reply With Quote
Old 04/12/2012, 12:49 PM   #7
teomakedonija
Banned
 
Join Date: Nov 2011
Posts: 405
Reputation: -46
Default Re: SetObjectMaterialText

BUMP !
teomakedonija is offline   Reply With Quote
Old 04/12/2012, 01:06 PM   #8
teomakedonija
Banned
 
Join Date: Nov 2011
Posts: 405
Reputation: -46
Default Re: SetObjectMaterialText

Fixed
teomakedonija 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
[FilterScript] Fun With SetObjectMaterialText MA_proking Filterscripts 10 25/10/2013 12:49 PM
SetObjectMaterialText Abreezy Scripting Help 5 06/09/2012 02:22 AM
SetObjectMaterialText SnG.Scot_MisCuDI Scripting Help 12 11/07/2012 12:30 PM
SetObjectMaterialText SnG.Scot_MisCuDI Scripting Help 3 07/06/2012 08:41 AM
[BUG] SetObjectMaterialText NetKiel Scripting Help 7 22/04/2012 11:57 AM


All times are GMT. The time now is 05:27 AM.


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