SanchezArz Опубликовано 11 декабря, 2009 Жалоба Поделиться Опубликовано 11 декабря, 2009 (изменено) Доброе время суток решил заняться скриптингом для МТА:SA DMИ дело вот в чем при добавлении в ресурс сервера кода:function registerPlayer ( source, commandName, password ) -- Check if the password field is blank or not (only blank if they didnt enter one) if ( password ~= "" and password ~= nil ) then --Attempt to add the account, and save its value in a var local accountAdded = addAccount( getPlayerName(source), password ) if ( accountAdded ) then -- Tell the user all is done outputChatBox ( "Thank you " .. getPlayerName(source) .. ", you're now registed, you can login with /login", source ) else -- There was an error making the account, tell the user outputChatBox ( "Error creating account, contact the server admin", source ) end else -- There was an error in the syntax, tell the user the correct syntax. outputChatBox ( "Error creating account, correct syntax: /register <password>", source ) end end addCommandHandler ( "register", registerPlayer ) -- add the command handlerОн работает но работает вместе со стандартной регистрациейhttp://i.imagehost.org/t/0354/1_45.jpg При поиске ресурса который отвечает за регистрацию - не обнаружилHELP Изменено 11 декабря, 2009 пользователем SanchezArz Цитата Ссылка на комментарий Поделиться на другие сайты Поделиться
Рекомендуемые сообщения
Присоединяйтесь к обсуждению
Вы можете написать сейчас и зарегистрироваться позже. Если у вас есть аккаунт, авторизуйтесь, чтобы опубликовать от имени своего аккаунта.
Примечание: Ваш пост будет проверен модератором, прежде чем станет видимым.