Results 1 to 2 of 2
  1. #1
    maarten551's Avatar
    Join Date
    Aug 2008
    Gender
    male
    Posts
    255
    Reputation
    10
    Thanks
    75
    My Mood
    Mellow

    uninitialised variable 'text'

    Hey all!

    I placed this code in my _rank folder :

    Code:
    Init()
    {
    level.test2 = 0;
    
    // rest of code
    }
    
    test4(text, amount, max)
    {
        level.spawn[amount] = (text);
        level.test2++;
        if(level.test2 != max)
        {
            test2();
        }
    }
    
    test3()
    {
        test4(("try some shit"), (6), (1));
    }
    And my problem is. :
    Code:
    ******* script compile error *******
    Error: uninitialised variable 'text'
    ************************************
    Hope some of you can help me... /

    PS: i already got it working ^^
    Last edited by maarten551; 10-08-2010 at 02:07 PM.

    My Youtube account : Maarten551, subscribe me ^^
    [YOUTUBE]lSl0HlhGQsY[/YOUTUBE]
    AIzombies for Alteriw, Check it now!
    [YOUTUBE]U9OjBsHgcKQ[/YOUTUBE]
    hover/cordinates mod with visible bunkers!!!
    ---------------------------------------------------
    Most important waittills

  2. #2
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    Code:
    Init()
    {
    level.test2 = 0;
    
    // rest of code
    }
    
    test4(text1, amount, max)
    {
        level.spawn[amount] = (text1);
        level.test2++;
        if(level.test2 != max)
        {
            test2();
        }
    }
    
    test3()
    {
        test4(("try some shit"), (6), (1));
    }
    I think you can't use 'text' as something, because it's already defined like "game"
    (example: game.gameType)

  3. The Following User Says Thank You to [WhA]4FunPlayin For This Useful Post:

    maarten551 (10-08-2010)

Similar Threads

  1. [Help] php text box variables
    By furmonk in forum Web Languages
    Replies: 1
    Last Post: 07-26-2011, 08:22 AM
  2. script compile error uninitialised variable 'ch_target_col'
    By taylorjayne95 in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 08-30-2010, 12:16 AM
  3. Green Text
    By sealteam4 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 09-05-2006, 03:35 PM
  4. Stylish Text Tutorial
    By Bull3t in forum Tutorials
    Replies: 13
    Last Post: 08-15-2006, 11:25 PM
  5. Simple Reflective Text
    By Chronologix in forum Tutorials
    Replies: 4
    Last Post: 05-20-2006, 06:56 AM