[FilterScript] Clock 3D in game
#10

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)
Reply


Messages In This Thread
Clock 3D in game - by sirvasy - 26.10.2013, 08:35
Re: Clock 3D in game - by Wizzy951 - 26.10.2013, 08:37
Re: Clock 3D in game - by coool - 26.10.2013, 09:45
Re: Clock 3D in game - by ragu1987 - 26.10.2013, 16:58
Re: Clock 3D in game - by HardRock - 26.10.2013, 17:07
Re: Clock 3D in game - by Hamam - 26.10.2013, 17:11
AW: Clock 3D in game - by BigETI - 26.10.2013, 17:12
Re: Clock 3D in game - by IstuntmanI - 26.10.2013, 18:04
Re: AW: Clock 3D in game - by Pottus - 26.10.2013, 18:33
Re: Clock 3D in game - by ragu1987 - 03.11.2013, 16:04

Forum Jump:


Users browsing this thread: 1 Guest(s)