Results 1 to 5 of 5

Thread: How to get rid of these errors

  1. #1

    Question How to get rid of these errors

    Code:
    ^~^~^ Script Error: command 'item' applied to NULL listener

    Code:
    ^~^~^ Script Error: Cannot cast 'NIL' to int

    Code:
    CGM buffer for client 4 is full

    i use this script to give snipers

    Code:
    while(1)
    {
    $player item models/weapons/kar98sniper.tik
    $player item models/weapons/kar98.tik
    $playe item models/weapons/springfield.tik
    wait 2
    }
    end
    i want to know what to add to this script to end these error

    Thanks in advance

  2. #2
    Developer RyBack's Avatar
    Join Date
    Apr 2014
    Location
    In Front of the screen
    Posts
    1,583

    Default

    Quote Originally Posted by MohamedFawzy1 View Post
    Code:
    ^~^~^ Script Error: command 'item' applied to NULL listener

    Code:
    ^~^~^ Script Error: Cannot cast 'NIL' to int

    Code:
    CGM buffer for client 4 is full

    i use this script to give snipers

    Code:
    while(1)
    {
    $player item models/weapons/kar98sniper.tik
    $player item models/weapons/kar98.tik
    $playe item models/weapons/springfield.tik
    wait 2
    }
    end
    i want to know what to add to this script to end these error

    Thanks in advance

    while(1)
    {
    if($player)
    {
    $player item models/weapons/kar98sniper.tik
    $player item models/weapons/kar98.tik
    $player item models/weapons/springfield.tik
    }
    wait 2
    }
    end

  3. #3

    Default

    Quote Originally Posted by RyBack View Post

    while(1)
    {
    if($player)
    {
    $player item models/weapons/kar98sniper.tik
    $player item models/weapons/kar98.tik
    $player item models/weapons/springfield.tik
    }
    wait 2
    }
    end
    thanks man
    but still that error presents

    ^~^~^ Script Error: Cannot cast 'NIL' to int

    keeps spamming in console

  4. #4

    Default

    Quote Originally Posted by MohamedFawzy1 View Post
    ^~^~^ Script Error: Cannot cast 'NIL' to int
    keeps spamming in console
    Look in the console log just before that script error message
    It should say what exactly is the error and from what script file is coming from

  5. #5

    Default

    Quote Originally Posted by Zappa View Post
    Look in the console log just before that script error message
    It should say what exactly is the error and from what script file is coming from

    Code:
    while(1)
    {
        if($player)
        {
            $player item models/weapons/kar98sniper.tik
            $player item models/weapons/kar98.tik
            $player item models/weapons/springfield.tik
        }
        wait 2
    }
    end

    this script which cause this error

    Code:
    ^~^~^ Script Error: Cannot cast 'NIL' to int
    
            $player[local.i] item models/weapons/springfield.tik (global/snipers.scr, 7)
            $player^

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •