Jump to content

Window opening


Beluga

Recommended Posts

Posted

I made a script that should open a window, create image and setCameraMatrix but those things aren't happened. The screen keep staying black? Someone can help me.

  loginWindow = guiCreateWindow(0.35875,0.285,0.28375,0.4167,"Welcome to The Friend Mode v0.1 BETA",true) 
  toggleControl ("chatbox",false) 
  guiWindowSetMovable(loginWindow,false) 
  guiWindowSetSizable(loginWindow,false) 
  loginWindowUsernameLabel = guiCreateLabel(0.0352,0.108,0.859,0.112,"Username",true,loginWindow) 
  guiLabelSetColor(loginWindowUsernameLabel,255,255,255) 
  guiLabelSetVerticalAlign(loginWindowUsernameLabel,"center") 
  guiLabelSetHorizontalAlign(loginWindowUsernameLabel,"left",false) 
  loginWindowUsernameEdit = guiCreateEdit(0.0749,0.248,0.8238,0.124,"",true,loginWindow) 
  guiEditSetMaxLength(loginWindowUsernameEdit,20) 
  loginWindowPasswordEdit = guiCreateEdit(0.0749,0.54,0.8238,0.124,"",true,loginWindow) 
  guiEditSetMasked(loginWindowPasswordEdit,true) 
  guiEditSetMaxLength(loginWindowPasswordEdit,20) 
  loginWindowPasswordLabel = guiCreateLabel(0.0352,0.396,0.8062,0.12,"Password",true,loginWindow) 
  guiLabelSetColor(loginWindowPasswordLabel,255,255,255) 
  guiLabelSetVerticalAlign(loginWindowPasswordLabel,"center") 
  guiLabelSetHorizontalAlign(loginWindowPasswordLabel,"left",false) 
  loginWindowLoginButton = guiCreateButton(0.0441,0.704,0.9031,0.108,"Log in!",true,loginWindow) 
  loginWindowRegisterButton = guiCreateButton(0.0441,0.836,0.9031,0.108,"Register",true,loginWindow) 
   
  showCursor (true,true) 
  showChat (false) 
  setCameraMatrix (-2770.24,-1133.92,38.14,-2881.06,-907.75,9.301) 
  showPlayerHudComponent ("radar",false) 
  fadeCamera (true,2.5) 
  widescreenImage = guiCreateStaticImage(0,0,1,1,"widescreen.png",true,getRootElement()) 
  guiMoveToBack (widescreenImage) 

Posted

the script works fine.. remember to put it on client side.

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

zip and post your resource here

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

open your client file in Unofficial MTA Script Editor - you have syntax error in your client script (unclosed quote).

Also:

https://wiki.multitheftauto.com/index.ph ... ging&go=Go

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

go debugging then. but its weird that MTA SE doesnt see it

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

Posted

varez, he is wrong it shows like 30 errors at MTA script editor.

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
varez, he is wrong it shows like 30 errors at MTA script editor.

mtaeditor1.jpg

mtaeditor2.jpg

Look my MTA Script Editor don't show any errors.

//EDIT :: Hmm it is strange but I restart MTA Script Editor and now he shows errors.

Posted

good luck with fixing :)

Multi theft auto tools - replace cars and peds, move your map or compile your Lua files online!

programista php rzeszów

Need free webhosting for your small site? PM me. Need help with portforwarding? PM me. Do not PM me asking for help with scripting.

Having problems with port forwarding? Send me pm, I can do whole thing for you using TeamViewer (already helped about 20 people, no worries)!

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