Getplayerspeed, setobjectmaterialtext ?
#1

This sign should show current vehicle speed, but it shows only 0 always Maybe I missed something ? How it looks like :
http://www.part.lt/perziura/20bacd18...c9c5bb9107.png

Code:

Код:
public OnGameModeInit()
{
    new stri[128];
    new objektas = CreateObject(7246, 687.94568, -1756.04565, 16.27477,   0.00000, 0.00000, 252.25433);
    for(new i = 0; i < MAX_PLAYERS; i++)
    format(stri,128,"%d",GetPlayerSpeed(i,true));
    SetObjectMaterialText(objektas,stri, 0, OBJECT_MATERIAL_SIZE_256x128,\
	"Arial", 80, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
}
Reply


Messages In This Thread
Getplayerspeed, setobjectmaterialtext ? - by Louris - 02.07.2013, 15:48
Re: Getplayerspeed, setobjectmaterialtext ? - by doreto - 02.07.2013, 15:50
Re: Getplayerspeed, setobjectmaterialtext ? - by Louris - 02.07.2013, 15:56
Re: Getplayerspeed, setobjectmaterialtext ? - by doreto - 02.07.2013, 15:58
Re: Getplayerspeed, setobjectmaterialtext ? - by Louris - 02.07.2013, 16:00
Re: Getplayerspeed, setobjectmaterialtext ? - by doreto - 02.07.2013, 16:03
Re: Getplayerspeed, setobjectmaterialtext ? - by Louris - 02.07.2013, 16:06
Re: Getplayerspeed, setobjectmaterialtext ? - by 101 - 02.07.2013, 16:07
Re: Getplayerspeed, setobjectmaterialtext ? - by Louris - 02.07.2013, 16:12
Re: Getplayerspeed, setobjectmaterialtext ? - by Louris - 02.07.2013, 16:29

Forum Jump:


Users browsing this thread: 1 Guest(s)