function onScriptLoad(){ local nPos = VectorScreen( 11, ScreenHeight - 25 ); local nSize = ScreenSize( 100,3 ); nText <- GUILabel( nPos, nSize, "" ); nText.FontName = "Cambria"; nText.FontSize = 12; AddGUILayer( nText ); nText.Text = "Example1"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "Example2", 10000, 1 );}function Example2() { nText.Text = "Example2"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "Example3", 10000, 1 );}function Example3() { nText.Text = "Example3"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "Example4", 10000, 1 );}function Example4() { nText.Text = "Example4"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "Example5", 10000, 1 );}function Example5() { nText.Text = "Example5"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "Example1", 10000, 1 );}
nText.Text = "Kill Any One xD";
NewTimer( "Example1", 0000, 1 );
Morphine says: them LU devs ranting about how LU doesn't have client pickups while us VC:MPers don't have client anything ;_;Stormeus Argo says: we have client crashes though ohohohohohoMorphine says: LU DOESN'T HAVE THATStormeus Argo says: LU - 0 VC:MP - 1
Too much timers, also..Code: [Select]NewTimer( "Example1", 0000, 1 );Please fix it.
Still, too much timers to accomplish the same task.
function onScriptLoad(){ local nPos = VectorScreen( 11, ScreenHeight - 25 ); local nSize = ScreenSize( 100,3 ); nText <- GUILabel( nPos, nSize, "" ); nText.FontName = "Cambria"; nText.FontSize = 12; AddGUILayer( nText ); nText.Text = "Example1"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "TextUpdater", 10000, 0 );}random_msg <- [ "message1", "message2", "message3", // add how many you want];function TextUpdater(){ nText.Text = random_msg[ rand() % random_msg.len() ];}
My problem is that you encourage new scripters to use timers which is not good, also, your timer usage is not good.Take a look:Code: [Select]function onScriptLoad(){ local nPos = VectorScreen( 11, ScreenHeight - 25 ); local nSize = ScreenSize( 100,3 ); nText <- GUILabel( nPos, nSize, "" ); nText.FontName = "Cambria"; nText.FontSize = 12; AddGUILayer( nText ); nText.Text = "Example1"; nText.TextColour = Colour( 255, 255, 255 ); NewTimer( "TextUpdater", 10000, 0 );}random_msg <- [ "message1", "message2", "message3", // add how many you want];function TextUpdater(){ nText.Text = random_msg[ rand() % random_msg.len() ];}See how easy I made everything.Fixed it for you