SA-MP Forums Archive
SetObjectMaterialText - 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: SetObjectMaterialText (/showthread.php?tid=397281)



SetObjectMaterialText - teomakedonija - 04.12.2012

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 Код:
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);



Re: SetObjectMaterialText - teomakedonija - 04.12.2012

BUMP !


Re: SetObjectMaterialText - Ballu Miaa - 04.12.2012

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

pawn Код:
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);



Re: SetObjectMaterialText - XtremeR - 04.12.2012

CreateObject(playerid

playerid?

https://sampwiki.blast.hk/wiki/CreateObject


Re: SetObjectMaterialText - Ballu Miaa - 04.12.2012

Quote:
Originally Posted by XtremeR
Посмотреть сообщение
CreateObject(playerid

playerid?

https://sampwiki.blast.hk/wiki/CreateObject
Even i was like : O.o seriously fella? @ThreadPoster - Use the code above.


Re: SetObjectMaterialText - teomakedonija - 04.12.2012

Dont working this

pawn Код:
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 !


Re: SetObjectMaterialText - teomakedonija - 04.12.2012

BUMP !


Re: SetObjectMaterialText - teomakedonija - 04.12.2012

Fixed