OK hier nochmal ganz
new myobject;
public OnGameModeInit()
{
SetTimer("Uhr", 1000, 1);
//myobject = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0); //create the object
return 1;
}
forward Uhr();
public Uhr()
{
new hour,min,sec;
gettime(hour,min,sec);
new string[258];
format(string,sizeof(string),"%02d:%02d:%02d",hour,min,sec);
DestroyObject(myobject);
myobject = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0); //create the object
SetObjectMaterialText(myobject, string, 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
return 1;
}
MFG piet