SetObjectMaterialText
#1

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);
Reply
#2

BUMP !
Reply
#3

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);
Reply
#4

CreateObject(playerid

playerid?

https://sampwiki.blast.hk/wiki/CreateObject
Reply
#5

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.
Reply
#6

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 !
Reply
#7

BUMP !
Reply
#8

Fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)