Jump to content

Bad Argument


myonlake

Recommended Posts

Posted (edited)

Hello once again,

I am trying to make a script that changes your camera position all the time, but this one has bad arguments.

-- Player on-join 
function onJoin() 
    fadeCamera(source, true, 5) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox("Welcome to testing server.", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    setCameraMatrix(source, -1687, 1313, 25, -1529, 1235, 1) 
    setTimer(function() 
        fadeCamera(source, false, 3) 
    end, 6000, 1) 
    setTimer(camera_1, 7000, 1, source) 
end 
addEventHandler("onPlayerJoin", getRootElement(), onJoin) 
  
-- Camera 1 
function camera_1() 
    fadeCamera(source, true, 3) 
    setCameraMatrix(source, -1469, 760, 59, -1610, 832, 8 ) 
    setTimer(camera_2, 7000, 1, source) 
    setTimer(function() 
        fadeCamera(source, false, 3) 
    end, 6000, 1) 
end 
  
-- Camera 2 
function camera_2() 
    fadeCamera(source, true, 3) 
    setCameraMatrix(source, -1852, 1100, 168, -1080, 454, 2) 
    setTimer(camera_1, 7000, 1, source) 
    setTimer(function() 
        fadeCamera(source, false, 3) 
    end, 6000, 1) 
end 

Edited by Guest

If I helped you, please click the like button on the right ;) Thanks!

Posted

Can you post the part of the script which executes camera_1 and camera_2?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted
-- Player on-join 
function onJoin() 
    fadeCamera(source, true, 5) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    outputChatBox("Welcome to testing server.", source, 255, 255, 255, true) 
    outputChatBox(" ", source, 255, 255, 255, true) 
    setCameraMatrix(source, -1687, 1313, 25, -1529, 1235, 1) 
    setTimer(function() 
        fadeCamera(source, false, 3) 
    end, 6000, 1) 
    setTimer(camera_1, 7000, 1, source) 
end 
addEventHandler("onPlayerJoin", getRootElement(), onJoin) 
  
-- Camera 1 
function camera_1(player) 
    fadeCamera(player, true, 3) 
    setCameraMatrix(player, -1469, 760, 59, -1610, 832, 8 ) 
    setTimer(camera_2, 7000, 1, player) 
    setTimer(function() 
        fadeCamera(player, false, 3) 
    end, 6000, 1) 
end 
  
-- Camera 2 
function camera_2(player) 
    fadeCamera(player, true, 3) 
    setCameraMatrix(player, -1852, 1100, 168, -1080, 454, 2) 
    setTimer(camera_1, 7000, 1, player) 
    setTimer(function() 
        fadeCamera(player, false, 3) 
    end, 6000, 1) 
end 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...