Jump to content

Stumped


Deddalt

Recommended Posts

I'm currently stumped with my script, I've written a lot for it, and it doesn't seem to have any errors. The only problem is: I tried to use fadeCamera(source, true) when they join the server, but when I join my test server, it doesn't fade the camera in.

http://pastebin.com/f52b7dacf < There's the link to the script, if you could help, that would be great. This camera business is doing my head in.

Link to comment

Shouldn't

fadeCamera(thePlayer, true) 

be

fadeCamera(sourcePlayer, true) 

not sure if 'thePlayer' is a default variable for the player, prolly just me being a tard. :S

Link to comment

Here's your code without error messages http://pastebin.com/mf34e5f2. There are however still warning message that I will explain. But first a list of changes to the original source.

1) I've removed all semi columns in your code header. This is not wrong but my advice is to do this everywhere or leave it out.

2) Changed the following code:

  
tbl[player][logged] = 1 
  

  
tbl[player] = {} 
tbl[player][logged] = 1 
  

3) The follwing code was moved to a global point instead of inside the function (caused warnings otherwise):

  
pcomp = createColSphere(-2066.0, -859.0, 33.0, 4) 
hithq = createColSphere(-2002.0, -1019.0, 33.0, 4) 
adcomp = createColSphere(-1972.0, -1019.0, 33.0, 4) 
  

This leaves only 6 warning left but no more errors.

The warnings are thrown by the following lines:

  
    local theCiv = createTeam(Civilian, 255, 255, 255) 
    local theSFPD = createTeam(SFPD, 255, 255, 255) 
    local theFBI = createTeam(FBI, 255, 255, 255) 
    local theOrg = createTeam(Organisation, 255, 255, 255) 
  

This is because Civilian, SFPD, FBI and Organisation are not defined anywhere in the code you posted.

  
    setTimer(arrestTime, 1000, 0) 
  

The first parameter is a non existing function handle.

Link to comment

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...