Deddalt Posted August 8, 2008 Share Posted August 8, 2008 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
Guest Posted August 8, 2008 Share Posted August 8, 2008 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. Link to comment
Deddalt Posted August 8, 2008 Author Share Posted August 8, 2008 Ooh, yeah, that was my desperate state. I didn't set it back, also, it was not working with "source", either. Link to comment
Deddalt Posted August 8, 2008 Author Share Posted August 8, 2008 Alright, now I've changed a LOT of things, mainly by changing the "AccountData" things to that player database that was released in the scripting forum. Now I get an error (mind you the fadeCamera error is probably still there) that won't let the script start anymore. Here is the script: http://pastebin.com/d23357fae The error is supposedly on line 352, it says: Link to comment
Ace_Gambit Posted August 8, 2008 Share Posted August 8, 2008 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now