Jump to content

Recommended Posts

Witam jestem nowy na tym forum jakze i w MTA. Mam problem z tym oto kodem. Domyslilem sie ze blad jest w linijce if ( account ) then. Tak wiem to moze byc smieszne, ale gdy ja usunelem tekst outputChatBox sie pokazywal gdy ja dodalem nie. Pozdrawiam i czekam na odpowiedz.

function zmien ( text, player ) 
local account = getPlayerAccount ( source ) 
if ( account ) then 
setAccountPassword ( account, text ) 
outputChatBox ( "Twoje hasło zostało zmienione na #ff0000'"..text..".", source, 255, 255, 255, true ) 
end 
end 
addEvent ( "zmien", true ) 
addEventHandler ( "zmien", getRootElement(), zmien ) 
  

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