therenex Posted January 17, 2008 Share Posted January 17, 2008 i pasted my code and it didnt show :wtf: the problem is that my players doesnt spawn, they only see that fkin black screen. http://therenex.pastebin.com/f4ef3ae88 there's the code can you tell me whats the mistake Link to comment
Jumba' Posted January 17, 2008 Share Posted January 17, 2008 Yea, i have no idea why they dont spawn, but all those random ID's, couldn't you just use RandInt? http://development.mtasa.com/index.php?title=RandInt =/ Link to comment
[email protected] Posted January 17, 2008 Share Posted January 17, 2008 The reason why they do not spawn is, that the function doSpawn() requires the argument "thePlayer". By calling this function on player join, you do not supply that argument, and therefore the function doSpawn() doesn't know which player it has to spawn. Link to comment
eAi Posted January 17, 2008 Share Posted January 17, 2008 What's with the massive tables? You should be storing that data in a map file so that other resources can use your mode... You shouldn't have a different function for each teleport, again these points could be stored in the map file so that users could easily add new ones. Link to comment
therenex Posted January 17, 2008 Author Share Posted January 17, 2008 adding the argument to the doSpawn function doesnt fix anything, it stills showing the gay black screen. and about the teleports and tables, im making them sa-mp style, before learning more about lua, im starting with basics things. this script worked, i dunno why is fuckd up now D: dont think im a pro or something lol >.< Link to comment
Guest Posted January 21, 2008 Share Posted January 21, 2008 you need to un-fade the camera.. try this at the beginning of your spawn function: fadeCamera(source,true) where 'source' is the player 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