Jump to content

big problem with variables!! need help!!


SirniNamaz

Recommended Posts

i am trying to make a mission framework for mta sa (single/co-op).. so my question is this:

if i create one client file with this code: createMission("Mission One","MissionOneMarkersName") (i have the client function createMission)

i want it to create marker which name/variable will be "MissionOneMarkersName" or whatever i put on the createMission function name when i use it in the code.

Link to comment

not the name, the variable:

for examle if i do this

varSomething = createMarker ( x + 2, y + 2, z, "cylinder", 1.5, 255, 255, 0, 170 ) 

it will create marker named 'varSomething'

but varSomething contains a string/text which is 'mrkSomething' and i want it to create a marker which's variable is the string inside varSomething

Link to comment

'Area' in '[]' is a key. Marker will be a value. All of them will be a table. You can set anything in '[]' brackets but if you want to create several markers then you obviously need numbers because it's easier to get them in the future. Anyway you can set anything you want as a key.

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