Ryzhuk Posted May 31, 2016 Share Posted May 31, 2016 Dear Forum's Users, help me, please: dialog{} ------------------------------------Функции---------------------------------- function OnPlayerJoin() spawnPlayer(player, -2332.2952,-1641.4176,483.7031) fadeCamera (source, true) setCameraTarget (source, source) end addEventHandler("onPlayerJoin", getRootElement(), OnPlayerJoin) function ShowPlayerDialog(playerid, dialogid, style, caption, info, button1, button2) end function OnPlayerSpawn() end addEventHandler("onPlayerSpawn", OnPlayerSpawn) function OnPlayerWasted() setTimer(spawnPlayer, 5000, 1, source) end addEventHandler("onPlayerWasted", OnPlayerWasted) ------------------------------Команды---------------------------------- function cmd_test(playerid, command) end addCommandHandler("test", cmd_test) Link to comment
KariiiM Posted May 31, 2016 Share Posted May 31, 2016 function OnPlayerJoin ( ) spawnPlayer ( source, -2332.2952, -1641.4176, 483.7031 ) fadeCamera ( source, true ) setCameraTarget ( source, source ) end addEventHandler ( "onPlayerJoin", root, OnPlayerJoin ) You were using a undefined variable. Link to comment
Ryzhuk Posted May 31, 2016 Author Share Posted May 31, 2016 function OnPlayerJoin ( ) spawnPlayer ( source, -2332.2952, -1641.4176, 483.7031 ) fadeCamera ( source, true ) setCameraTarget ( source, source ) end addEventHandler ( "onPlayerJoin", root, OnPlayerJoin ) You were using a undefined variable. Problem isn't solved. I see just black screen when I connetc to the server. Link to comment
KariiiM Posted May 31, 2016 Share Posted May 31, 2016 Are you using this "fadeCamera" function somewhere? If yes, check if it has an argument with false bool then turn it to true 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