Missing Argument

Discussion in 'PHP' started by egdcltd, Nov 26, 2006.

  1. #1
    Okay, I've got a script that calls on a defined function, but I keep getting the following error message:


    Warning: Missing argument 3 for adr_use_skill_mining() in /home/directo/public_html/games/adr/includes/adr_functions_skills.php on line 122
    Code (markup):
    Now the code that calls the function is this:

    				$new_item_id = adr_use_skill_mining($user_id , $tool , $mine_type);
    PHP:
    $mine_type is defined a bit earlier in the script

    And the function called at line 122 is this:

    function adr_use_skill_mining($user_id , $tool , $mine_type)
    PHP:
    so as far as I can see, the argument isn't missing.

    What am I doing wrong?
     
    egdcltd, Nov 26, 2006 IP
  2. disgust

    disgust Guest

    Messages:
    2,417
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try echoing each of the three variables.

    my guess is one variable is empty.
     
    disgust, Nov 26, 2006 IP
  3. egdcltd

    egdcltd Peon

    Messages:
    691
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, but it was something else entirely as it turned out. The code for that was correct, but elsewhere in the script the wrong page was being called.
     
    egdcltd, Nov 26, 2006 IP