Jump to content

Scripting


Recommended Posts

Yar 1 kaam karo, SQL seekho, its really really useful, then PHP+MTA SDK seekho, phir dekho tumhari scripts kaisi banti hain, MTA PHP SDK k through to hum world ki (almost) koi bhi cheeze game mein dekh saktay hain, except for videos, GIF images etc.

Ye check karo meri scripts, which used PHP SDK:

https://community.multitheftauto.com/index.php?p= ... s&id=11231

https://community.multitheftauto.com/index.php?p= ... s&id=10997

Inhain download kar k check karo, maine PHP tutorial bhi sath hi diya hai, its easy ;)

or btw, wo ig playtime counter tumhari nahi hai?

Link to comment

Hello Motorola,

As I can see you have learned the basics of MTA:SA scripting. For enhancing your scripting skills you must have to go step by step. You can even pickup the tasks that Ryan has mentioned. SQL plays a big role in MTA:SA scripting, and it's useful also for various stuffs. You'll discover many new things if you do start learning SQL. Always remember you shouldn't be frustrated if you are facing a problem and you can't fix it yourself. You're always welcome to post your problem (That you face) here while creating a script, as Ryan has already said.

GUI is an important feature used in MTA:SA, so if you didn't learn it by now then follow these steps:

Learn how to create simple login GUI in MTA:SA - You can either use this tutorial to learn scripting or edit scripts that are in MTA:SA community.

GUI functions

Download GUI editor for creating GUI for your script

Everybody has their ways/procedures to learn. If you practice more you'll be able to learn MTA:SA scripting quickly. Don't think how impossible it is. You'll have to start from a path to get succeed.

Link to comment

Well, MySQL aik database hai, aur GUI (Graphical User Interface) aik User Interface hai. For instance, aap ne login system bana hai jis main aap ko aik panel ya window bana hai jis ke zariye client login kare, us login panel/window ko GUI kaha jata hai.

  
GUIEditor = { 
    label = {}, 
    window = {} 
} 
addEventHandler("onClientResourceStart", resourceRoot, 
    function() 
        GUIEditor.window[1] = guiCreateWindow(470, 179, 443, 440, "GUI Example", false) 
        guiWindowSetSizable(GUIEditor.window[1], false) 
  
        GUIEditor.label[1] = guiCreateLabel(108, 149, 353, 56, "iss window ko GUI Kaha jata hai", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small")     
    end 
) 

iss code ko notepad per save karain aur local server main jaa kar start karain. Aap ko pata chal jaye ga.

Aur jahan baat rahi MySQL ki, main personally MySQL prefer nahi karta (For those who are new in scripting). MySQL thora sa complicated hoga new scripters ke liye, so that's why. Main aap ko recommend karta hun ke aap SQL seekho rathar than MySQL.

Link to comment
Shukria MHS, magar phlay MYSQL seekhi jaye ya gui (easy kon si hai) phlay easy say shuru Karun ga aur mujhe pata nahi kyun lag rha hai k muje abhi aur practice ki zaroorat hai.And please ye Urdu board hai English nahi xD

Look at the bold/underlined quote. Agar aap ko GUI create karni aati hai to phir aap nay aaisay kiyun kaha?

EDIT: Keep practicing, you'll discover new things and you'll know how to sort out problems that you face, and as I already said, you're welcome to post your problem here! :wink:

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