Jump to content

ThePhill97

Members
  • Posts

    33
  • Joined

  • Last visited

About ThePhill97

  • Birthday 19/09/1997

Details

  • Gang
    Angelic Shadows
  • Location
    England

ThePhill97's Achievements

Rat

Rat (9/54)

0

Reputation

  1. My brain clicked. Yes, I understand now. Thanks.
  2. ...Makes no sense Don't even begin scripting or programming in general if you don't understand that - you need to have motivation and understanding. Arrays are important. Dont get me wrong, Im not a noob into scripting. Some would call it "advanced-medium" I know PAWN (SA-MP) C++ C# Visual Basic (vb6+) Batch Visual basic scripts Some java See, I'm not a nub. It's just my learning style isn't all reading. I need examples that I can kinda-relate to and in simple forms.
  3. They are in a MAP file.
  4. What do you mean 'where'? Location? Script?
  5. I can see how they go together, however I have in general a few mixed cars that I want only the team to be able to use, but with the onVehicleStartEnter and getPlayerTeam it only allows certain car ID's
  6. I have vehicles scripted in, however I want to make the cars only enterable by those in the team
  7. Yeah Was a mistake I missed it out.
  8. I have a team "Mafia" and I want to know how to make ONLY the members of this team enter, but anyone else can enter passenger? Is this possible
  9. Now the player cannot register. Nothing happens.
  10. This one?: function onClickBtnRegister(button,state) --При нажатии на кнопку Register and Cofirm if(button == "left" and state == "up") then if (source == btn_reg_tab_register) then username = guiGetText(edit_account_name) password = guiGetText(edit__reg_tab_password) passwordConfirm = guiGetText(edit__reg_tab_Repassword) triggerServerEvent("onRequestRegister",getLocalPlayer(),username,password,passwordConfirm) end end end
  11. function registerPlayer(username,password,passwordConfirm) if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then outputChatBox ("#FF0000* #00FF00You have sucessfuly registered! [username: #FFFFFF" .. username .. " #00FF00| Password: #FFFFFF" .. password .. "#00FF00 ]",source,255,255,255,true ) outputChatBox("You travelled to 'Philatopia' from *BLANK*.", source) outputChatBox("Your left-over cash = $500.", source) givePlayerMoney ( thePlayer, 500 ) else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Error ocurred. Choose a different username/password.") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","An account with this username already exists") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Passwords do not match") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Please confirm your password") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Please enter a password") end else triggerClientEvent(source,"set_warning_text",getRootElement(),"Register","Please enter a username you would like to register") end end addEvent("onRequestRegister",true) addEventHandler("onRequestRegister",getRootElement(),registerPlayer) The script itself works, just not money giving?
  12. I know the simplicity of this function, but it just doesn't work. givePlayerMoney ( thePlayer, amount ) local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then outputChatBox ("#FF0000* #00FF00You have sucessfuly registered! [username: #FFFFFF" .. username .. " #00FF00| Password: #FFFFFF" .. password .. "#00FF00 ]",source,255,255,255,true ) outputChatBox("You travelled to 'Philatopia' from *BLANK*.", source) outputChatBox("Your left-over cash = $500.", source) givePlayerMoney ( thePlayer, 500 ) What is the problem? givePlayerMoney is the correct thing, give it to the player, $500... [NOTE] It's abit scrunched up, but I have the correct dents everywhere on my file.
×
×
  • Create New...