Quote:
Originally Posted by IstuntmanI
This one is very bad scripted (see BigETI's post), I made a better version, doing the same thing but much more efficiently:
pawn Код:
/* +++++++ ++++++ +++ +++ ++ ++ +++ + ++ + + + + + + ++ ++++++ +++ +++ + + */
#include <a_samp>
new Text3D:giClock, giTime[ 3 ], gsString[ 128 ];
public OnFilterScriptInit() { giClock = Create3DTextLabel( " ", 0xFFFFFFFF, 895.0890, -1101.9412, 35.5424, 200.0, 0 );
SetTimer( "UpdateClock", 1000, true ); return 1; }
forward UpdateClock( ); public UpdateClock( ) { gettime( giTime[ 0 ], giTime[ 1 ], giTime[ 2 ] ); format( gsString, 128, "{00C0FF}Clock {FFAF00}By {F81414}Teddy\n{00C0FF}%02d{F300FF}:{FFAF00}%02d{F300FF}:{F81414}%02d", hours, minutes, seconds ); Update3DTextLabelText( giClock, 0xFFFFFFFF, gsString ); }
|
tried this showing some error please fix it and can we use this as filter script??
Error:
input(26) : error 17: undefined symbol "hours"
Error: The compiler failed. (no error code)