02.07.2013, 17:02
Sign shows current vehicle speed, but it doesn't update just keeps flashing every second, why?
How sign looks like :
http://www.part.lt/perziura/de3f992c...04854a7967.png
(It means "Your speed")
Код:
public OnGameModeInit() { SetTimer("speed", 1000, true); }
Код:
forward speed(); public speed() { new stri[128]; for(new i = 0; i < MAX_PLAYERS; i++) format(stri,128,"Jusu greitis\n%d",GetPlayerSpeed(i,true)); SetObjectMaterialText(objektas,stri, 0, OBJECT_MATERIAL_SIZE_256x128,\ "Arial", 55, 0, 0xB8860BAA, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); }
http://www.part.lt/perziura/de3f992c...04854a7967.png
(It means "Your speed")