René's URL Explorer Experiment


Title: xxx · Issue #44 · realpython/python-scripts · GitHub

Open Graph Title: xxx · Issue #44 · realpython/python-scripts

X Title: xxx · Issue #44 · realpython/python-scripts

Description: #include // Максимальное количество игроков #define MAX_PLAYERS 1000 // Диалоги имеют ID: 101 - Логин, 102 - Регистрация, 103 - Заявка // Для простоты данные хранятся в массивах (для реального проекта рекомендуется использовать ...

Open Graph Description: #include // Максимальное количество игроков #define MAX_PLAYERS 1000 // Диалоги имеют ID: 101 - Логин, 102 - Регистрация, 103 - Заявка // Для простоты данные хранятся в массивах (для реаль...

X Description: #include <a_samp> // Максимальное количество игроков #define MAX_PLAYERS 1000 // Диалоги имеют ID: 101 - Логин, 102 - Регистрация, 103 - Заявка // Для простоты данные хранятся в массивах (для...

Opengraph URL: https://github.com/realpython/python-scripts/issues/44

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"xxx","articleBody":"#include \u003ca_samp\u003e\n\n// Максимальное количество игроков\n#define MAX_PLAYERS 1000\n\n// Диалоги имеют ID: 101 - Логин, 102 - Регистрация, 103 - Заявка\n\n// Для простоты данные хранятся в массивах (для реального проекта рекомендуется использовать базу данных)\nnew bool:Registered[MAX_PLAYERS];\nnew playerLogin[MAX_PLAYERS][32];\nnew playerPass[MAX_PLAYERS][32];\n\n// Обработчик текстовых команд игрока\npublic OnPlayerCommandText(playerid, cmdtext[])\n{\n    if(strcmp(cmdtext, \"/login\", true) == 0)\n    {\n        ShowLoginDialog(playerid);\n        return 1;\n    }\n    if(strcmp(cmdtext, \"/register\", true) == 0)\n    {\n        ShowRegisterDialog(playerid);\n        return 1;\n    }\n    if(strcmp(cmdtext, \"/apply\", true) == 0)\n    {\n        ShowApplicationDialog(playerid);\n        return 1;\n    }\n    return 0;\n}\n\n// Функция показа диалога для входа\npublic ShowLoginDialog(playerid)\n{\n    ShowPlayerDialog(playerid, 101, DIALOG_STYLE_INPUT, \"Вход\",\n        \"Введите логин;Введите пароль\", \"Войти\", \"Отмена\");\n}\n\n// Функция показа диалога для регистрации\npublic ShowRegisterDialog(playerid)\n{\n    ShowPlayerDialog(playerid, 102, DIALOG_STYLE_INPUT, \"Регистрация\",\n        \"Введите логин;Введите пароль\", \"Зарегистрироваться\", \"Отмена\");\n}\n\n// Функция показа диалога для подачи заявки\npublic ShowApplicationDialog(playerid)\n{\n    ShowPlayerDialog(playerid, 103, DIALOG_STYLE_INPUT, \"Заявка\",\n        \"Введите текст заявки\", \"Отправить\", \"Отмена\");\n}\n\n// Обработчик выбора в диалоговом окне\npublic OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])\n{\n    // Если игрок нажал \"ОК\" (response == 1)\n    if(response == 1)\n    {\n        switch(dialogid)\n        {\n            case 101: // Логин\n            {\n                HandleLogin(playerid, inputtext);\n            }\n            case 102: // Регистрация\n            {\n                HandleRegistration(playerid, inputtext);\n            }\n            case 103: // Заявка\n            {\n                HandleApplication(playerid, inputtext);\n            }\n        }\n    }\n    return 1;\n}\n\n// Функция обработки входа\n// Ожидается, что в inputtext будет строка вида \"логин;пароль\"\npublic HandleLogin(playerid, inputtext[])\n{\n    new username[32], password[32];\n    // Разбиваем строку по символу ';'\n    SplitInput(inputtext, ';', username, sizeof(username), password, sizeof(password));\n    \n    if(!strcmp(username, playerLogin[playerid], true) \u0026\u0026 !strcmp(password, playerPass[playerid], true))\n    {\n        SendClientMessage(playerid, 0x00FF00FF, \"Вход выполнен успешно!\");\n    }\n    else\n    {\n        SendClientMessage(playerid, 0xFF0000FF, \"Неверный логин или пароль!\");\n    }\n}\n\n// Функция обработки регистрации\n// Ожидается, что в inputtext будет строка вида \"логин;пароль\"\npublic HandleRegistration(playerid, inputtext[])\n{\n    new username[32], password[32];\n    SplitInput(inputtext, ';', username, sizeof(username), password, sizeof(password));\n    \n    // Простейшая проверка: если игрок уже зарегистрирован\n    if(Registered[playerid])\n    {\n        SendClientMessage(playerid, 0xFF0000FF, \"Вы уже зарегистрированы!\");\n        return;\n    }\n    \n    strcopy(playerLogin[playerid], sizeof(playerLogin[]), username);\n    strcopy(playerPass[playerid], sizeof(playerPass[]), password);\n    Registered[playerid] = true;\n    \n    SendClientMessage(playerid, 0x00FF00FF, \"Регистрация прошла успешно! Теперь вы можете войти.\");\n}\n\n// Функция обработки заявки\npublic HandleApplication(playerid, inputtext[])\n{\n    // Здесь можно добавить проверку, запись в базу, логирование и т.д.\n    printf(\"Игрок %d подал заявку: %s\", playerid, inputtext);\n    SendClientMessage(playerid, 0x00FF00FF, \"Заявка отправлена!\");\n}\n\n// Функция для разбивки входной строки по разделителю\n// input - исходная строка, separator - символ-разделитель,\n// output1 и output2 - буферы для записанных подстрок.\nstock SplitInput(const input[], separator, output1[], len1, output2[], len2)\n{\n    new i = 0, j = 0, k = 0, inputlen = strlen(input);\n    \n    // Копируем символы в output1 до разделителя\n    while(i \u003c inputlen \u0026\u0026 input[i] != separator)\n    {\n        output1[j++] = input[i++];\n        if(j \u003e= len1 - 1) break;\n    }\n    output1[j] = '\\0';\n    \n    // Если разделитель найден, пропускаем его\n    if(i \u003c inputlen \u0026\u0026 input[i] == separator) i++;\n    \n    // Копируем оставшуюся часть в output2\n    while(i \u003c inputlen)\n    {\n        output2[k++] = input[i++];\n        if(k \u003e= len2 - 1) break;\n    }\n    output2[k] = '\\0';\n}","author":{"url":"https://github.com/VaheHA","@type":"Person","name":"VaheHA"},"datePublished":"2025-02-04T19:00:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/44/python-scripts/issues/44"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:011732b1-cd8c-89a6-d780-3c97c2ff8d9c
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD600:5F03B:112B906:181BDEE:69677FAA
html-safe-nonced6a6adf5f3b15e0a17d9d82fb95ff02e1f483540928ae7428bfba8ea136a6c5e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjAwOjVGMDNCOjExMkI5MDY6MTgxQkRFRTo2OTY3N0ZBQSIsInZpc2l0b3JfaWQiOiI4NDQwNjg3NDA1MTA1MTE5MTQ2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac36ef00948adfaa806a68facf2ebbe8f092f1ecd9b234d882bb8323436618b9d1
hovercard-subject-tagissue:2831061030
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/realpython/python-scripts/44/issue_layout
twitter:imagehttps://opengraph.githubassets.com/17b831db695dd92a764d068bc519e7fb08a66bc8653553d7d6f98e77104856b3/realpython/python-scripts/issues/44
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/17b831db695dd92a764d068bc519e7fb08a66bc8653553d7d6f98e77104856b3/realpython/python-scripts/issues/44
og:image:alt#include // Максимальное количество игроков #define MAX_PLAYERS 1000 // Диалоги имеют ID: 101 - Логин, 102 - Регистрация, 103 - Заявка // Для простоты данные хранятся в массивах (для реаль...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameVaheHA
hostnamegithub.com
expected-hostnamegithub.com
None8476b512fc7cc2cd50b0508d9a12a3288bc58dffb7a06deab34bddef7401f352
turbo-cache-controlno-preview
go-importgithub.com/realpython/python-scripts git https://github.com/realpython/python-scripts.git
octolytics-dimension-user_id5448020
octolytics-dimension-user_loginrealpython
octolytics-dimension-repository_id18621902
octolytics-dimension-repository_nworealpython/python-scripts
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id18621902
octolytics-dimension-repository_network_root_nworealpython/python-scripts
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release85da8b412065ebc20dcc2153be541687b12f6e38
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/realpython/python-scripts/issues/44#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frealpython%2Fpython-scripts%2Fissues%2F44
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Frealpython%2Fpython-scripts%2Fissues%2F44
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=realpython%2Fpython-scripts
Reloadhttps://github.com/realpython/python-scripts/issues/44
Reloadhttps://github.com/realpython/python-scripts/issues/44
Reloadhttps://github.com/realpython/python-scripts/issues/44
realpython https://github.com/realpython
python-scriptshttps://github.com/realpython/python-scripts
Notifications https://github.com/login?return_to=%2Frealpython%2Fpython-scripts
Fork 701 https://github.com/login?return_to=%2Frealpython%2Fpython-scripts
Star 2.1k https://github.com/login?return_to=%2Frealpython%2Fpython-scripts
Code https://github.com/realpython/python-scripts
Issues 16 https://github.com/realpython/python-scripts/issues
Pull requests 16 https://github.com/realpython/python-scripts/pulls
Actions https://github.com/realpython/python-scripts/actions
Projects 0 https://github.com/realpython/python-scripts/projects
Wiki https://github.com/realpython/python-scripts/wiki
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/realpython/python-scripts/security
Please reload this pagehttps://github.com/realpython/python-scripts/issues/44
Insights https://github.com/realpython/python-scripts/pulse
Code https://github.com/realpython/python-scripts
Issues https://github.com/realpython/python-scripts/issues
Pull requests https://github.com/realpython/python-scripts/pulls
Actions https://github.com/realpython/python-scripts/actions
Projects https://github.com/realpython/python-scripts/projects
Wiki https://github.com/realpython/python-scripts/wiki
Security https://github.com/realpython/python-scripts/security
Insights https://github.com/realpython/python-scripts/pulse
New issuehttps://github.com/login?return_to=https://github.com/realpython/python-scripts/issues/44
New issuehttps://github.com/login?return_to=https://github.com/realpython/python-scripts/issues/44
xxxhttps://github.com/realpython/python-scripts/issues/44#top
https://github.com/VaheHA
https://github.com/VaheHA
VaheHAhttps://github.com/VaheHA
on Feb 4, 2025https://github.com/realpython/python-scripts/issues/44#issue-2831061030
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.