• 0
tivan666ban

debug] Run time error 20: "Invalid index parameter (bad entry point)"

Вопросы

Помогите пожалуйста 

 

Код 

Спойлер

// == == == == [ Инклуды ] == == == ==
#include <a_samp>
#include <crashdetect>
#include <a_mysql>
#include <Pawn.CMD>
#include <streamer>
#include <foreach>
#include <a_actor>
#include <a_http>
#include <a_npc>
#include <a_objects>
#include <a_players>
#include <a_sampdb>
#include <a_vehicles>
#include <core>
#include <datagram>
#include <file>
#include <float>
#include <mxini>
#include <string>
#include <time>
#include <crp>
// == == == == [ MAIN ] == == == ==
main() { }
// == == == == [ MySQL БД ] == == == ==
#define MySQL_Host "127.0.0.1"
#define MySQL_User "user40541"
#define MySQL_Base "user40541"
#define MySQL_Pass "YSwTC01E3SyW"
// == == == == [ Диалоги ] == == == ==
#define SPD ShowPlayerDialog
#define SCM SendClientMessage
#define SCMTA SendClientMessageToAll
#define DSL DIALOG_STYLE_LIST
#define DSI DIALOG_STYLE_INPUT
#define DSM DIALOG_STYLE_MSGBOX
#define DSP DIALOG_STYLE_PASSWORD
// == == == == [ Цвета ] == == == ==
#define Color_Brown 0xA52A2AFF
#define Color_Blue 0x00BFFFFF
#define Color_Crimson 0xDC143CFF
#define Color_Chocolate 0xD2691EFF
#define Color_FireBrick 0xB22222FF
#define Color_Grey 0x999999FF
#define Color_Green 0x008000FF
#define Color_LimeGreen 0x00FF00FF
#define Color_Maroon 0x800000FF
#define Color_Orange 0xDF8600FF
#define Color_OrangeRed 0xFF4500FF
#define Color_Purple 0x800080FF
#define Color_Red 0xFF0000FF
#define Color_White 0xFFFFFFFF
#define Color_Yellow 0xFFFF00FF
#define Color_LightRed 0xFF463CFF
// == == == == [ Дефайны ] == == == ==
#define Freeze(%0,%1) TogglePlayerControllable(%0, %1)
#define Pkick(%0) SetTimerEx("TimeKick"80false"i", %0)
#if !defined isnull
#define isnull(%0) ((!(%0[0])) || (((%0[0]) == '\1') && (!(%0[1]))))
#endif
// == == == == [ Форврады ] == == == ==
forward PlayerCheck(playerid);
forward PlayerLogin(playerid);
forward CheckReferal(playerid, name[]);
forward CheckReferal_2(playerid);
forward CheckLogin(playerid);
forward TimeKick(playerid);
forward UpdateTime(playerid);
forward GetID(playerid);
forward FastSpawn(playerid);
// == == == == [ Переменные ] == == == ==
new dbHandle,
    number_skin[MAX_PLAYERS char],
    number_pass[MAX_PLAYERS char],
    
    Text: select_skin[MAX_PLAYERS][11],
    update_timer[MAX_PLAYERS],
    login_timer[MAX_PLAYERS],
    
    bool: login_check[MAX_PLAYERS char];
// == == == == [ Информация Игрока ] == == == ==
enum player
{
    pID,
    pName[MAX_PLAYER_NAME+1],
    pPass[32+1],
    pEmail[46+1],
    pReferal[MAX_PLAYER_NAME+1],
    pDateReg[10+1],
    pNations,
    pAge,
    pSex,
    pSkin,
    pMoney,
    pLevel
}
new pInfo[MAX_PLAYERS][player];
// == == == == [ Паблики ] == == == ==
public OnGameModeInit()
{
    SetGameModeText("Role Play");
    ConnectMySQL();
    AddPlayerClass(00.00.00.00.0000000);

    ShowPlayerMarkers(PLAYER_MARKERS_MODE_STREAMED);
    ShowNameTags(true);
    SetNameTagDrawDistance(20.0);
    DisableInteriorEnterExits();
    EnableStuntBonusForAll(0);
    
    // == == == [ Интерьер Регистрации/Авторизации ] == == ==
    new tmpobjid, map_world = -1, map_int = -1;
    tmpobjid = CreateDynamicObject(19377247.99180634.9980011006.2412710.00000090.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018646"matcolours""grey-80-percent"0x00000000);
    tmpobjid = CreateDynamicObject(19450243.57009834.9719001007.9895010.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 07488"vegasdwntwn1""vgnstonewall1_256"0x00000000);
    tmpobjid = CreateDynamicObject(19450248.47039730.2455991007.9895010.0000000.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 07488"vegasdwntwn1""vgnstonewall1_256"0x00000000);
    tmpobjid = CreateDynamicObject(19450248.42494239.6566311007.9895010.0000000.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 07488"vegasdwntwn1""vgnstonewall1_256"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.16839539.6671981008.6298210.000000180.000000180.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(19450253.15510540.3969001005.7645260.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 07488"vegasdwntwn1""vgnstonewall1_256"0x00000000);
    tmpobjid = CreateDynamicObject(19450253.15510530.7658991007.9895010.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 07488"vegasdwntwn1""vgnstonewall1_256"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.19239837.7131991010.3438110.000000180.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.16839537.4701991010.3438110.000000180.000000180.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.19239835.5251991008.6298210.000000180.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.16839536.5852011009.6707760.000000180.000000180.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.19239838.6072001009.6707760.000000180.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.16839537.5912011008.687805, -90.00000090.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.19239838.4171981007.45178290.00000090.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.19239836.1832001007.45178290.00000090.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.16839539.8512001009.787780, -90.00000090.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(1897253.16839535.3342011009.787780, -90.00000090.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018835"mickytextures""whiteforletters"0x00000000);
    tmpobjid = CreateDynamicObject(19431245.79341130.6202601007.9895010.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 03945"bistro_alpha""creme128"0x00000000);
    tmpobjid = CreateDynamicObject(19878246.07650730.5261001006.7572020.00000073.10009742.840000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 010041"archybuild10""whitedecosfe4"0x00000000);
    tmpobjid = CreateDynamicObject(2123250.58474732.6716611006.8784170.0000000.000000174.420227, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 014385"trailerkb""tr_floor2"0x00000000);
    SetDynamicObjectMaterial(tmpobjid, 16060"shops2_law""venshade03_law"0x00000000);
    tmpobjid = CreateDynamicObject(2123252.48254332.3198011006.8784170.0000000.000000, -7.739998, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 014385"trailerkb""tr_floor2"0x00000000);
    SetDynamicObjectMaterial(tmpobjid, 16060"shops2_law""venshade03_law"0x00000000);
    SetDynamicObjectMaterial(tmpobjid, 210101"2notherbuildsfe""Bow_church_grass_alt"0x00000000);
    tmpobjid = CreateDynamicObject(2123251.51573133.7482911006.8784170.0000000.00000081.359939, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 014385"trailerkb""tr_floor2"0x00000000);
    SetDynamicObjectMaterial(tmpobjid, 16060"shops2_law""venshade03_law"0x00000000);
    tmpobjid = CreateDynamicObject(19916252.77430734.9425011006.2435910.0000000.000000, -90.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 014803"bdupsnew""Bdup2_Artex"0x00000000);
    SetDynamicObjectMaterial(tmpobjid, 13437"ballypillar01""ballywall01_64"0x00000000);
    tmpobjid = CreateDynamicObject(19431252.26699835.4938011007.9895010.0000000.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 03945"bistro_alpha""creme128"0x00000000);
    tmpobjid = CreateDynamicObject(948252.72929339.2506401006.3272090.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 318757"vcinteriors""dts_elevator_ceiling"0x00000000);
    tmpobjid = CreateDynamicObject(948252.72929335.8465991006.3272090.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 318757"vcinteriors""dts_elevator_ceiling"0x00000000);
    tmpobjid = CreateDynamicObject(19431244.48135336.7687601007.9895010.0000000.000000121.320022, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 07488"vegasdwntwn1""vgnstonewall1_256"0x00000000);
    tmpobjid = CreateDynamicObject(1897246.47639439.6930001006.3958120.000000180.000000152.520095, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 01677"wshxrefhse2""yellowbeige_128"0x00000000);
    tmpobjid = CreateDynamicObject(1897245.14660637.0854981007.3557730.000000180.000000, -25.440000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 01677"wshxrefhse2""yellowbeige_128"0x00000000);
    tmpobjid = CreateDynamicObject(1897245.12559537.0955001009.5888060.0000000.000000, -25.440000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 01677"wshxrefhse2""yellowbeige_128"0x00000000);
    tmpobjid = CreateDynamicObject(19431243.04029836.3648981007.9895010.0000000.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 07488"vegasdwntwn1""vgnstonewall1_256"0x00000000);
    tmpobjid = CreateDynamicObject(1897245.71969638.1932981006.26379390.00000090.00000062.459999, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 01677"wshxrefhse2""yellowbeige_128"0x00000000);
    tmpobjid = CreateDynamicObject(1897246.75369240.1743011006.26379390.00000090.00000062.459999, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 01677"wshxrefhse2""yellowbeige_128"0x00000000);
    tmpobjid = CreateDynamicObject(1897245.69569338.1992981009.780822, -89.94000289.87999762.459999, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 01677"wshxrefhse2""yellowbeige_128"0x00000000);
    tmpobjid = CreateDynamicObject(1897246.71969640.1733011009.780822, -89.94000289.87999762.459999, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 01677"wshxrefhse2""yellowbeige_128"0x00000000);
    tmpobjid = CreateDynamicObject(1897246.47639439.6930001008.6267700.000000180.000000152.520095, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 01677"wshxrefhse2""yellowbeige_128"0x00000000);
    tmpobjid = CreateDynamicObject(948243.90286236.0320281006.3287350.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 318757"vcinteriors""dts_elevator_ceiling"0x00000000);
    tmpobjid = CreateDynamicObject(2631249.76811237.3155211006.3084710.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 019844"metalpanels""metalpanel2"0x00000000);
    tmpobjid = CreateDynamicObject(2842246.80151330.3900311006.3287960.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 04828"airport3_las""gnhotelwall02_128"0x00000000);
    tmpobjid = CreateDynamicObject(2315249.07170137.3638001006.3405760.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 019082"laserpointer4""laserbeam-4-64x64"0x00000000);
    tmpobjid = CreateDynamicObject(19934251.57269235.5068011006.3289180.0000000.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 05040"shopliquor_las""lasjmliq1"0x00000000);
    tmpobjid = CreateDynamicObject(19934251.57269235.5068011008.7019040.0000000.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 05040"shopliquor_las""lasjmliq1"0x00000000);
    tmpobjid = CreateDynamicObject(1897251.41979935.5097991007.8980710.000000180.00000090.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 03435"motel01sign""vegasmotelsign03_128"0x00000000);
    tmpobjid = CreateDynamicObject(19934245.79499831.3819001005.8350210.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 05040"shopliquor_las""lasjmliq1"0x00000000);
    tmpobjid = CreateDynamicObject(19934245.79699731.3819001009.1909790.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 05040"shopliquor_las""lasjmliq1"0x00000000);
    tmpobjid = CreateDynamicObject(1897245.80230731.5454001007.9179680.000000180.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 03435"motel01sign""vegasmotelsign03_128"0x00000000);
    tmpobjid = CreateDynamicObject(1897245.77830531.5454001010.1215200.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 03435"motel01sign""vegasmotelsign03_128"0x00000000);
    tmpobjid = CreateDynamicObject(1706249.31280539.0189091006.3289180.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 019597"lsbeachside""wall7-256x256"0x00000000);
    SetDynamicObjectMaterial(tmpobjid, 118901"matclothes""beretblk"0x00000000);
    SetDynamicObjectMaterial(tmpobjid, 219004"roundbuilding1""stonewalltile4"0x00000000);
    tmpobjid = CreateDynamicObject(19477247.33836330.8483521006.3597410.000000, -89.299949, -90.199981, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterialText(tmpobjid, 0"_______"140"Ariel"8500xFF0000000x000000001);
    tmpobjid = CreateDynamicObject(19477247.33882130.9783401006.3613280.000000, -89.299949, -90.199981, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterialText(tmpobjid, 0"Welcome"140"Ariel"8000xFF0000000x000000001);
    tmpobjid = CreateDynamicObject(1734251.37869232.5278011009.6754760.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 03615"beachhut""asanmonbhut2"0x00000000);
    SetDynamicObjectMaterial(tmpobjid, 114803"bdupsnew""Bdup2_Artex"0x00000000);
    tmpobjid = CreateDynamicObject(19786250.75289930.3283991008.1823730.0000000.000000180.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018646"matcolours""grey-40-percent"0x00000000);
    SetDynamicObjectMaterial(tmpobjid, 118646"matcolours""grey-95-percent"0x00000000);
    tmpobjid = CreateDynamicObject(2081250.26660130.2751991006.3018790.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    SetDynamicObjectMaterial(tmpobjid, 018800"mroadhelix1""road1-3"0x00000000);
    tmpobjid = CreateDynamicObject(2030251.38456732.5326191006.7260740.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2059250.42669630.5200991006.4428100.0000000.00000037.619998, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(1841249.31677230.2765001007.5864860.000000, -12.000000, -90.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(9248203.82980341.6091001006.4929800.0000000.000000236.940093, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(1536246.56101930.2923811006.2671500.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2694245.37655630.5909861006.433898, -0.199999, -0.09999983.298019, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19325253.16839538.8921011007.9207760.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2462243.76220730.3742001005.0090940.0000000.000000180.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2694244.00779730.5708981006.6336050.0000000.00000091.498001, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(1841252.19679230.2765001007.5864860.000000, -12.000000, -90.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2396245.35009730.6374601007.8532710.0000000.000000183.980102, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(18951244.08828730.5507101007.240905, -14.819998, -94.260101, -39.900009, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19814248.38229339.5182991006.5717160.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19814253.05599934.3909981006.5717160.0000000.000000, -90.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19814249.35290530.3379991006.5717160.0000000.000000180.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19829246.35220330.3342991007.6544180.0000000.000000180.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(11744251.37362633.0963211007.1281730.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(11744251.96824632.4850881007.1281730.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(11744250.85511732.5899501007.1281730.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(14793247.22489935.6626891009.6406860.0000000.00000090.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19377247.99180634.9980011009.8173210.00000090.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19603246.32690439.3740001008.3750000.00000090.000000152.459899, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19325246.71549940.1524001007.9207760.0000000.000000152.459899, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19630245.83959938.4170981007.6751700.000000, -7.75600063.476001, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19630245.76139838.2654991008.5720820.00000023.16600063.476001, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(1599245.59240737.9384991007.053588, -9.58500016.139999, -26.399999, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(1600246.12480139.0890001008.114013, -3.35999818.120000, -28.079999, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(1604245.50990237.7513001008.252685, -9.852000, -18.719999, -30.479999, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2344250.98379531.0107001006.758972, -7.0799980.00000034.259998, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(18868250.94361837.7230111006.8242790.0000000.000000209.580093, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(11716250.86090032.7865981007.1246940.0000000.000000, -94.080009, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(11716251.99632232.2959701007.1246940.0000000.00000094.080001, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(11716251.57720933.1031491007.1248160.0000000.000000180.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(11715251.18760633.0796391007.1328120.0000000.000000180.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(11715250.86439532.3828011007.1304930.0000000.000000, -90.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(11715251.99226332.6953881007.1309200.0000000.00000090.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19807250.45249930.6445991006.8693230.0000000.000000219.779998, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19819250.97039732.2312811007.2028190.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19819251.88323932.8141401007.2028190.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19819251.10090632.9604491007.2028190.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(1664251.45199532.4859001007.2922970.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(1664250.88659633.1120981006.4837030.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(1664250.98623633.1151501006.4837030.0000000.00000014.760000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19173243.66610731.8271991008.5441280.0000000.00000090.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2265252.56809933.4143981008.2030020.0000000.000000, -90.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2263252.56340032.5662991007.8164060.0000000.000000, -90.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19318243.66589334.6260981008.5914910.000000, -57.18000090.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19893250.68861337.3207811006.8251950.0000000.000000, -146.339904, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2226243.99394235.3402591006.3278190.0000000.00000071.219993, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19611244.88880936.3159101006.3222040.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(367244.82499636.2044981007.943420, -8.93999817.7000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(19421248.74490337.1389381006.413879, -6.4000000.000000, -60.659999, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2263248.45880139.0696901008.0869140.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2260249.92156939.0584101008.3825680.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    tmpobjid = CreateDynamicObject(2261251.42576539.0648841007.6372070.0000000.0000000.000000, map_world, map_int, -1300.00300.00);
    return true;
}
public OnGameModeExit()
{
    return true;
}
public OnPlayerRequestClass(playerid, classid)
{
    return true;
}
public OnPlayerConnect(playerid)
{
//*********************************логотип**************************************
    new Text:Textdraw0;
    new Text:Textdraw1;
    new Text:Textdraw2;
    new Text:Textdraw3;
    new Text:Textdraw4;
    new Text:Textdraw5;


    Textdraw0 = TextDrawCreate(559.0587761.166676"San-Andreas");
    TextDrawLetterSize(Textdraw0, 0.4499991.600000);
    TextDrawAlignment(Textdraw0, 1);
    TextDrawColor(Textdraw0, -5963521);
    TextDrawUseBox(Textdraw0, true);
    TextDrawBoxColor(Textdraw0, 0);
    TextDrawSetShadow(Textdraw0, 0);
    TextDrawSetOutline(Textdraw0, 1);
    TextDrawBackgroundColor(Textdraw0, 51);
    TextDrawFont(Textdraw0, 2);
    TextDrawSetProportional(Textdraw0, 1);

    Textdraw1 = TextDrawCreate(557.64703315.750000"LD_POOL:ball");
    TextDrawLetterSize(Textdraw1, 0.0000000.000000);
    TextDrawTextSize(Textdraw1, 6.5882775.833333);
    TextDrawAlignment(Textdraw1, 1);
    TextDrawColor(Textdraw1, -1);
    TextDrawSetShadow(Textdraw1, 0);
    TextDrawSetOutline(Textdraw1, 0);
    TextDrawFont(Textdraw1, 4);

    Textdraw2 = TextDrawCreate(607.52935715.749997"LD_POOL:ball");
    TextDrawLetterSize(Textdraw2, 0.0000000.000000);
    TextDrawTextSize(Textdraw2, 6.1176295.833334);
    TextDrawAlignment(Textdraw2, 1);
    TextDrawColor(Textdraw2, -1);
    TextDrawSetShadow(Textdraw2, 0);
    TextDrawSetOutline(Textdraw2, 0);
    TextDrawFont(Textdraw2, 4);

    Textdraw3 = TextDrawCreate(562.35296616.333330"LD_SPAC:white");
    TextDrawLetterSize(Textdraw3, 0.0000000.000000);
    TextDrawTextSize(Textdraw3, 47.5293424.666667);
    TextDrawAlignment(Textdraw3, 1);
    TextDrawColor(Textdraw3, -1);
    TextDrawSetShadow(Textdraw3, 0);
    TextDrawSetOutline(Textdraw3, 0);
    TextDrawFont(Textdraw3, 4);

    Textdraw4 = TextDrawCreate(559.52960223.333349"ROLE PLAY");
    TextDrawLetterSize(Textdraw4, 0.2989401.168332);
    TextDrawAlignment(Textdraw4, 1);
    TextDrawColor(Textdraw4, -1);
    TextDrawSetShadow(Textdraw4, 0);
    TextDrawSetOutline(Textdraw4, 1);
    TextDrawBackgroundColor(Textdraw4, 51);
    TextDrawFont(Textdraw4, 2);
    TextDrawSetProportional(Textdraw4, 1);

    Textdraw5 = TextDrawCreate(43.294170429.333404"action-rp.ru");
    TextDrawLetterSize(Textdraw5, 0.2660001.284999);
    TextDrawAlignment(Textdraw5, 1);
    TextDrawColor(Textdraw5, -1);
    TextDrawSetShadow(Textdraw5, 0);
    TextDrawSetOutline(Textdraw5, 1);
    TextDrawBackgroundColor(Textdraw5, 51);
    TextDrawFont(Textdraw5, 2);
    TextDrawSetProportional(Textdraw5, 1);
//******************************************************************************
    GetPlayerName(playerid, pInfo[playerid][pName], MAX_PLAYER_NAME);
    static fmt_str[] = "SELECT `ID` FROM `users` WHERE `Name` = '%s' LIMIT 1";
    new string[sizeof(fmt_str)+(-2+MAX_PLAYER_NAME)];
    mysql_format(dbHandle, string, sizeof(string), fmt_str, pInfo[playerid][pName]);
    mysql_function_query(dbHandle, string, true"PlayerCheck""d", playerid);
    Clear(playerid);
    PlayerTextDraws(playerid);
    return true;
}
public OnPlayerDisconnect(playerid, reason)
{
    KillTimers(playerid);
    return true;
}
public OnPlayerSpawn(playerid)
{
    if(login_check{playerid} == true)
        SetPlayerSpawn(playerid);
    return true;
}
public OnPlayerDeath(playerid, killerid, reason)
{
    return true;
}
public OnVehicleSpawn(vehicleid)
{
    return true;
}
public OnVehicleDeath(vehicleid, killerid)
{
    return true;
}
public OnPlayerText(playerid, text[])
{
    if(login_check{playerid} == false)
    {
        SCM(playerid, Color_Grey, !"Вы не авторизованы.");
        return false;
    }
    return false;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    return false;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    return true;
}
public OnPlayerExitVehicle(playerid, vehicleid)
{
    return true;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    return true;
}
public OnPlayerEnterCheckpoint(playerid)
{
    return true;
}
public OnPlayerLeaveCheckpoint(playerid)
{
    return true;
}
public OnPlayerEnterRaceCheckpoint(playerid)
{
    return true;
}
public OnPlayerLeaveRaceCheckpoint(playerid)
{
    return true;
}
public OnRconCommand(cmd[])
{
    return true;
}
public OnPlayerRequestSpawn(playerid)
{
    return true;
}
public OnObjectMoved(objectid)
{
    return true;
}
public OnPlayerObjectMoved(playerid, objectid)
{
    return true;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
    return true;
}
public OnVehicleMod(playerid, vehicleid, componentid)
{
    return true;
}
public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
    return true;
}
public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    return true;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
    return true;
}
public OnPlayerExitedMenu(playerid)
{
    return true;
}
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
    return true;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    return true;
}
public OnRconLoginAttempt(ip[], password[], success)
{
    return true;
}
public OnPlayerUpdate(playerid)
{
    return true;
}
public OnPlayerStreamIn(playerid, forplayerid)
{
    return true;
}
public OnPlayerStreamOut(playerid, forplayerid)
{
    return true;
}
public OnVehicleStreamIn(vehicleid, forplayerid)
{
    return true;
}
public OnVehicleStreamOut(vehicleid, forplayerid)
{
    return true;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new len = strlen(inputtext),
        val = strval(inputtext);
    switch(dialogid)
    {
        case 1:
        {
            if(response)
            {
                if(!len)
                {
                    ShowRegister(playerid);
                    return SCM(playerid, Color_Grey, "Вы ничего не ввели.");
                }
                if(!(6 <= len <= 32))
                {
                    ShowRegister(playerid);
                    return SCM(playerid, Color_Grey, !"Неверная длина пароля.");
                }
                if(CheckRusText(inputtext, len+1))
                {
                    ShowRegister(playerid);
                    return SCM(playerid, Color_Grey, !"Смените раскладку клавиатуры.");
                }
                strmid(pInfo[playerid][pPass], inputtext, 0, len, 32+1);
                ShowPassCheck(playerid);
            }
            else
            {
                SCM(playerid, Color_FireBrick, !"Введите /q[uit]");
                Pkick(playerid);
            }
        }
        case 2:
        {
            if(!strcmp(pInfo[playerid][pPass], inputtext)) ShowEmail(playerid);
            else
            {
                SCM(playerid, Color_LightRed, !"Неверный пароль.");
                return Pkick(playerid);
            }
        }
        case 3:
        {
            if(response)
            {
                if(!len)
                {
                    ShowEmail(playerid);
                    return SCM(playerid, Color_Grey, !"Вы ничего не ввели.");
                }
                if(!(6 <= len <= 46))
                {
                    ShowEmail(playerid);
                    return SCM(playerid, Color_Grey, !"Неверная длина Элетронной почты.");
                }
                if(strfind(inputtext, "@"false) == -1 || strfind(inputtext, "."false) == -1)
                {
                    ShowEmail(playerid);
                    return SCM(playerid, Color_Grey, !"Неверный формат Электронной почты.");
                }
                if(CheckRusText(inputtext, len+1))
                {
                    ShowEmail(playerid);
                    return SCM(playerid, Color_Grey, !"Смените раскладку клавиатуры.");
                }
                strmid(pInfo[playerid][pEmail], inputtext, 0, len, 46+1);
                ShowReferal(playerid);
            }
            else ShowPassCheck(playerid);
        }
        case 4:
        {
            if(response)
            {
                if(isnull(inputtext))
                {
                    ShowReferal(playerid);
                    return SCM(playerid, Color_Grey, !"Вы ничего не ввели.");
                }
                static fmt_str[] = "SELECT `ID` FROM `users` WHERE `Name` = '%e' LIMIT 1";
                new string[sizeof(fmt_str)+(-2+MAX_PLAYER_NAME)];
                mysql_format(dbHandle, string, sizeof(string), fmt_str, (inputtext));
                mysql_function_query(dbHandle, string, true"CheckReferal""de", playerid, inputtext);
            }
            else ShowNations(playerid);
        }
        case 5:
        {
            if(response)
            {
                pInfo[playerid][pNations] = listitem+1;
                ShowAge(playerid);
            }
            else ShowReferal(playerid);
        }
        case 6:
        {
            if(response)
            {
                if(isnull(inputtext))
                {
                    ShowAge(playerid);
                    return SCM(playerid, Color_Grey, !"Вы ничего не ввели.");
                }
                if(!(1 <= val <= 99))
                {
                    ShowAge(playerid);
                    return SCM(playerid, Color_Grey, !"Неверная длина возраста.");
                }
                pInfo[playerid][pAge] = val;
                ShowSex(playerid);
            }
            else ShowNations(playerid);
        }
        case 7:
        {
            SpawnPlayer(playerid);
            if(response)
            {
                pInfo[playerid][pSex] = 1;
                SetPlayerSkin(playerid, 32);
                number_skin{playerid} = 1;
            }
            else
            {
                pInfo[playerid][pSex] = 2;
                SetPlayerSkin(playerid, 63);
                number_skin{playerid} = 15;
            }
            for(new i; i != 11; i++) TextDrawShowForPlayer(playerid, select_skin[playerid][i]);
            SelectTextDraw(playerid, 0xA52A2AFF);
            SetPlayerVirtualWorld(playerid, playerid);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 248.6302,33.8265,1007.3272);
            SetPlayerFacingAngle(playerid, 35.4503);
            SetPlayerCameraPos(playerid, 245.2390,36.4504,1008.5635);
            SetPlayerCameraLookAt(playerid, 248.6302,33.8265,1007.3272);
            Freeze(playerid, 0);
        }
        case 8:
        {
            if(response)
            {
                if(isnull(inputtext))
                {
                    ShowLogin(playerid);
                    return SCM(playerid, Color_Grey, "Вы ничего не ввели.");
                }
                static fmt_str[] = "SELECT * FROM `users` WHERE `ID` = '%d' AND `Pass` = '%e' LIMIT 1";
                new string[sizeof(fmt_str)+37];
                mysql_format(dbHandle, string, sizeof(string), fmt_str, pInfo[playerid][pID], inputtext);
                mysql_function_query(dbHandle, string, true"PlayerLogin""d", playerid);
            }
            else
            {
                SCM(playerid, Color_FireBrick, !"Введите /q[uit]");
                Pkick(playerid);
            }
        }
    }
    return true;
}
public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    return true;
}
public OnPlayerCommandReceived(playerid, cmd[], params[], flags)
{
    if(login_check{playerid} == false)
    {
        SCM(playerid, Color_Grey, !"Вы не авторизованы.");
        return false;
    }
    return true;
}
public OnPlayerClickTextDraw(playerid, Text: clickedid)
{
    if(clickedid == Text:INVALID_TEXT_DRAW && number_skin{playerid} > 0)
        SelectTextDraw(playerid, 0xA52A2AFF);
    if(clickedid == select_skin[playerid][9])
    {
        number_skin{playerid} ++;
        if(pInfo[playerid][pSex] == 1)
        {
            if(number_skin{playerid} == 15)
                number_skin{playerid} = 1;
        }
        else
        {
            if(number_skin{playerid} == 29)
                number_skin{playerid} = 15;
        }

        switch(number_skin{playerid})
        {
            // == == == [Мужские] == == ==
            case 1: SetPlayerSkin(playerid, 32);
            case 2: SetPlayerSkin(playerid, 78);
            case 3: SetPlayerSkin(playerid, 79);
            case 4: SetPlayerSkin(playerid, 133);
            case 5: SetPlayerSkin(playerid, 134);
            case 6: SetPlayerSkin(playerid, 135);
            case 7: SetPlayerSkin(playerid, 136);
            case 8: SetPlayerSkin(playerid, 137);
            case 9: SetPlayerSkin(playerid, 160);
            case 10: SetPlayerSkin(playerid, 200);
            case 11: SetPlayerSkin(playerid, 212);
            case 12: SetPlayerSkin(playerid, 213);
            case 13: SetPlayerSkin(playerid, 230);
            case 14: SetPlayerSkin(playerid, 239);
            // == == == [Женские] == == ==
            case 15: SetPlayerSkin(playerid, 63);
            case 16: SetPlayerSkin(playerid, 64);
            case 17: SetPlayerSkin(playerid, 75);
            case 18: SetPlayerSkin(playerid, 85);
            case 19: SetPlayerSkin(playerid, 131);
            case 20: SetPlayerSkin(playerid, 152);
            case 21: SetPlayerSkin(playerid, 198);
            case 22: SetPlayerSkin(playerid, 199);
            case 23: SetPlayerSkin(playerid, 201);
            case 24: SetPlayerSkin(playerid, 207);
            case 25: SetPlayerSkin(playerid, 237);
            case 26: SetPlayerSkin(playerid, 238);
            case 27: SetPlayerSkin(playerid, 243);
            case 28: SetPlayerSkin(playerid, 245);
        }
    }
    if(clickedid == select_skin[playerid][8])
    {
        number_skin{playerid} --;
        if(pInfo[playerid][pSex] == 1)
        {
            if(number_skin{playerid} == 0)
                number_skin{playerid} = 14;
        }
        else
        {
            if(number_skin{playerid} == 14)
                number_skin{playerid} = 28;
        }
        switch(number_skin{playerid})
        {
            // == == == [Мужские] == == ==
            case 1: SetPlayerSkin(playerid, 32);
            case 2: SetPlayerSkin(playerid, 78);
            case 3: SetPlayerSkin(playerid, 79);
            case 4: SetPlayerSkin(playerid, 133);
            case 5: SetPlayerSkin(playerid, 134);
            case 6: SetPlayerSkin(playerid, 135);
            case 7: SetPlayerSkin(playerid, 136);
            case 8: SetPlayerSkin(playerid, 137);
            case 9: SetPlayerSkin(playerid, 160);
            case 10: SetPlayerSkin(playerid, 200);
            case 11: SetPlayerSkin(playerid, 212);
            case 12: SetPlayerSkin(playerid, 213);
            case 13: SetPlayerSkin(playerid, 230);
            case 14: SetPlayerSkin(playerid, 239);
            // == == == [Женские] == == ==
            case 15: SetPlayerSkin(playerid, 63);
            case 16: SetPlayerSkin(playerid, 64);
            case 17: SetPlayerSkin(playerid, 75);
            case 18: SetPlayerSkin(playerid, 85);
            case 19: SetPlayerSkin(playerid, 131);
            case 20: SetPlayerSkin(playerid, 152);
            case 21: SetPlayerSkin(playerid, 198);
            case 22: SetPlayerSkin(playerid, 199);
            case 23: SetPlayerSkin(playerid, 201);
            case 24: SetPlayerSkin(playerid, 207);
            case 25: SetPlayerSkin(playerid, 237);
            case 26: SetPlayerSkin(playerid, 238);
            case 27: SetPlayerSkin(playerid, 243);
            case 28: SetPlayerSkin(playerid, 245);
        }
    }
    if(clickedid == select_skin[playerid][10])
    {
        new year_server,
            month_server,
            day_server;
        for(new i; i != 11; i++) TextDrawHideForPlayer(playerid, select_skin[playerid][i]);
        SCM(playerid, Color_White, !"Вы успешно зарегистрировались");
        login_check{playerid} = true;
        update_timer[playerid] = SetTimerEx("UpdateTime"1000false"i", playerid);
        Freeze(playerid, 1);
        number_skin{playerid} = 0;
        CancelSelectTextDraw(playerid);
        // == == == [ Создание Аккаунта ] == == ==
        pInfo[playerid][pLevel] = 1;
        pInfo[playerid][pSkin] = GetPlayerSkin(playerid);
        
        getdate(year_server, month_server, day_server);
        format(pInfo[playerid][pDateReg], 10+1"%02d/%02d/%02d", day_server, month_server, year_server);
        // == == == == == == == == == == == == ==
        static fmt_str[] = "INSERT INTO `users` (`Name`, `Pass`, `Email`, `Referal`,`Date Reg`, `Nations`, `Age`, `Sex`, `Skin`, `Level`) \
        VALUES ('%s', '%s', '%s', '%s', '%s', '%d', '%d', '%d', '%d', '%d')";
        new string[sizeof(fmt_str)+MAX_PLAYER_NAME*2+76];
        mysql_format(dbHandle, string, sizeof(string), fmt_str, pInfo[playerid][pName], pInfo[playerid][pPass], pInfo[playerid][pEmail],
            pInfo[playerid][pReferal], pInfo[playerid][pDateReg], pInfo[playerid][pNations], pInfo[playerid][pAge], pInfo[playerid][pSex],
        pInfo[playerid][pSkin], pInfo[playerid][pLevel]);
        mysql_function_query(dbHandle, string, true"GetID""i", playerid);
        SpawnPlayer(playerid);
    }
    return true;
}
// == == == == [ Свои Паблики ] == == == ==
public PlayerCheck(playerid)
{
    new rows,
        fields;
    cache_get_data(rows, fields);
    if(rows)
    {
        login_timer[playerid] = SetTimerEx("CheckLogin"1000*35false"i", playerid);
        pInfo[playerid][pID] = cache_get_field_content_int(0"ID");
        ShowLogin(playerid);
    }
    else ShowRegister(playerid);
}
public PlayerLogin(playerid)
{
    new rows,
        fields;
    cache_get_data(rows, fields);
    if(rows)
    {
        cache_get_field_content(0"Pass", pInfo[playerid][pPass], dbHandle, 32+1);
        cache_get_field_content(0"Email", pInfo[playerid][pEmail], dbHandle, 46+1);
        cache_get_field_content(0"Referal", pInfo[playerid][pReferal], dbHandle, MAX_PLAYER_NAME+1);
        cache_get_field_content(0"Date Reg", pInfo[playerid][pDateReg], dbHandle, 10+1);
        pInfo[playerid][pNations] = cache_get_field_content_int(0"Nations");
        pInfo[playerid][pAge] = cache_get_field_content_int(0"Age");
        pInfo[playerid][pSex] = cache_get_field_content_int(0"Sex");
        pInfo[playerid][pSkin] = cache_get_field_content_int(0"Skin");
        pInfo[playerid][pMoney] = cache_get_field_content_int(0"Money");
        pInfo[playerid][pLevel] = cache_get_field_content_int(0"Level");
        //== == == == == == == == == == == == == == == == == == == == == == ==
        login_check{playerid} = true;
        SetTimerEx("FastSpawn"100false"i", playerid);
        update_timer[playerid] = SetTimerEx("UpdateTime"1000false"i", playerid);
        KillTimer(login_timer[playerid]);
        static fmt_str[] = "SELECT * FROM `referal` WHERE `Name` = '%s' LIMIT 1";
        new string[sizeof(fmt_str)+MAX_PLAYER_NAME-1];
        mysql_format(dbHandle, string, sizeof(string), fmt_str, pInfo[playerid][pName]);
        mysql_function_query(dbHandle, string, true"CheckReferal_2""d", playerid);
    }
    else
    {
        number_pass{playerid} ++;
        if(number_pass{playerid} == 3)
        {
            Pkick(playerid);
            return SCM(playerid, Color_FireBrick, !"Попытки на ввод пароля закончены. Введите /q[uit]");
        }
        static const fmt_str[] = "Неверный пароль. Осталось попыток: %d";
        new string[sizeof(fmt_str)];
        format(string, sizeof(string), fmt_str, 3-number_pass{playerid});
        SCM(playerid, Color_LightRed, string);
        ShowLogin(playerid);
    }
    return true;
}
public CheckReferal(playerid, name[])
{
    new rows,
        fields;
    cache_get_data(rows, fields);
    if(!rows)
    {
        ShowReferal(playerid);
        return SCM(playerid, Color_Grey, !"Аккаунт не найден.");
    }
    strmid(pInfo[playerid][pReferal], name, 0, strlen(name), MAX_PLAYER_NAME+1);
    ShowSex(playerid);
    return true;
}
public CheckReferal_2(playerid)
{
    new rows,
        fields;
    cache_get_data(rows, fields);
    if(rows)
    {
        pInfo[playerid][pMoney] += 100_000;
        SavePlayer(playerid, "Money", pInfo[playerid][pMoney], "d");
        SCM(playerid, Color_Yellow, !"Вы получаете 100.000$ за приглашенного игрока");
        static fmt_str[] = "DELETE FROM `referal` WHERE `Name` = '%s' LIMIT 1";
        new string[sizeof(fmt_str)+MAX_PLAYER_NAME-1];
        mysql_format(dbHandle, string, sizeof(string), fmt_str, pInfo[playerid][pName]);
        mysql_function_query(dbHandle, string, true"""");
    }
    return true;
}
public CheckLogin(playerid)
{
    SCM(playerid, Color_FireBrick, !"Время на авторизацию вышло. Введите /q[uit]");
    Pkick(playerid);
    return true;
}
public TimeKick(playerid)
{
    Kick(playerid);
    return true;
}
public UpdateTime(playerid)
{
    if(pInfo[playerid][pMoney] != GetPlayerMoney(playerid))
    {
        ResetPlayerMoney(playerid);
        GivePlayerMoney(playerid, pInfo[playerid][pMoney]);
    }
    update_timer[playerid] = SetTimerEx("UpdateTime"1000false"i", playerid);
    return true;
}
public GetID(playerid)
{
    pInfo[playerid][pID] = cache_insert_id();
    return true;
}
public FastSpawn(playerid)
{
    SpawnPlayer(playerid);
    return true;
}
// == == == == [ Стоки ] == == == ==
stock ShowLogin(playerid)
{
    static const fmt_str[] = "{FFFFFF}[Добро пожаловать]\n\n\
        Логин: {A52A2A}[%s]{FFFFFF}\n\
        Пинг: {A52A2A}[%d]{FFFFFF}\n\
        Аккаунт: {FF0000}[занят]{FFFFFF}\n\n\
        {999999}У вас есть 35 секунд, чтобы ввести{FFFFFF}\n\
    Введите свой пароль:";
    new string[sizeof(fmt_str)+(-2+MAX_PLAYER_NAME)+(-2+5)];
    format(string, sizeof(string), fmt_str, pInfo[playerid][pName], GetPlayerPing(playerid));
    SPD(playerid, 8, DSP, "Авторизация", string, "•>>""•><•");
}
stock ShowRegister(playerid)
{
    static const fmt_str[] = "{FFFFFF}[Добро пожаловать]\n\n\
    Логин: {A52A2A}[%s]{FFFFFF}\n\
    Пинг: {A52A2A}[%d]{FFFFFF}\n\
    Аккаунт: {008000}[свободен]{FFFFFF}\n\n\
    Придумайте свой пароль:";
    new string[sizeof(fmt_str)+(-2+MAX_PLAYER_NAME)+(-2+5)];
    format(string, sizeof(string), fmt_str, pInfo[playerid][pName], GetPlayerPing(playerid));
    SPD(playerid, 1, DSI, "Регистрация", string, "•>>""•><•");
}
stock ShowPassCheck(playerid)
{
    SPD(playerid, 2, DSP, "[Подтверждение пароля]""{FFFFFF}Подтвердите Свой {A52A2A}[Пароль]{FFFFFF}\n\
    Чтобы продолжить {A52A2A}[Регитсрацию]{FFFFFF}:""•>>""•><•");
}
stock ShowEmail(playerid)
{
    SPD(playerid, 3, DSI, "[Электронная почта]""{FFFFFF}Укажите правильно свою {A52A2A}[Электронною почту]{FFFFFF}\n\
    В случае взлома или потери аккаунта{FFFFFF}\n\
    Вы сможите восстановить Свой {A52A2A}[Аккаунт]{FFFFFF}:\n\
    {DF8600}[Подсказка]{FFFFFF}:\n\
    \t{008000}[]{FFFFFF}Электронная почта должна быть от 6-ти до 46-ти смволов\n\
    \t{008000}[]{FFFFFF}Электронная почта должна состоять из цифр и латинских символов""•>>""<<•");
}
stock ShowReferal(playerid)
{
    SPD(playerid, 4, DSI, "[Реферал]""{FFFFFF}Введите {A52A2A}[Ник игрока] {FFFFFF}пригласившего\n\
    Вас на сервер:\n\
    {DF8600}[Подсказка]{FFFFFF}:\n\n\
    Достигнувши {A52A2A}Вами 6-го уровня{FFFFFF}, этот игрок\n\
    \t{008000}[]{FFFFFF}Получит {DF8600}[120.000$]\n\
    \t{008000}[]{FFFFFF}Получит {A52A2A}[VIP] - статус {FFFFFF}на {DF8600}[7 дней]\n\
    \t{008000}[]{FFFFFF}Получит {A52A2A}[Донат] {FFFFFF}в размере {DF8600}[250 рублей]""•><•""•>>");
}
stock ShowNations(playerid)
{
    SPD(playerid, 5, DSL, !"[Национальность]", !"Американская\n\
    Китайская\n\
    Итальянская\n\
    Мексиканская\n\
    Русский\n\
    Украинская\n\
    Филиппинская\n\
    Японская", !"•>>", !"<<•");
}
stock ShowAge(playerid)
{
    SPD(playerid, 6, DSI, !"[Возраст]", !"{FFFFFF}Введите возраст\n\
    Вашего {A52A2A}[Персонажа]{FFFFFF}:\n\
    {DF8600}[Подсказка]{FFFFFF}:\n\n\
    \t{008000}[]{FFFFFF}Возраст от 1-го до 99-ти\n\
    \t{008000}[]{FFFFFF}Возраст должен состоять из цифр", !"•>>", !"<<•");
}
stock ShowSex(playerid)
{
    SPD(playerid, 7, DSM, !"[Пол]", !"{FFFFFF}Выберите {A52A2A}[Пол] {FFFFFF}Вашего\n\
    персонажа{FFFFFF}\n\
    За которого Вы будете играть {A52A2A}[Role Play]{FFFFFF}:", !"Мужской", !"Женский");
}
stock CheckRusText(string[], size = sizeof(string))
{
    for(new i; i < size; i++)
    switch(string[i])
    {
        case 'А'..'Я''а'..'я'' 'return true;
    }
    return false;
}
stock Clear(playerid)
{
    number_skin{playerid} = 0;
    number_pass{playerid} = 0;
    login_check{playerid} = false;
}
stock KillTimers(playerid)
{
    KillTimer(update_timer[playerid]);
    KillTimer(login_timer[playerid]);
}
stock SetPlayerSpawn(playerid)
{
    SetPlayerScore(playerid, pInfo[playerid][pLevel]);
    SetPlayerSkin(playerid, pInfo[playerid][pSkin]);
    SetPlayerPos(playerid, 1154.3717, -1769.259416.5938);
    SetPlayerFacingAngle(playerid, 0.0);
    SetPlayerVirtualWorld(playerid, 0);
    SetPlayerInterior(playerid, 0);
    SetCameraBehindPlayer(playerid);
    return true;
}
stock SavePlayer(playerid, const field_name[], const set[], const type[])
{
    new string[128+1];
    if(!strcmp(type, "d"true))
    {
        mysql_format(dbHandle, string, sizeof(string), "UPDATE `users` SET `%s` = '%d' WHERE `ID` = '%d' LIMIT 1",
        field_name, set, pInfo[playerid][pID]);
    }
    else if(!strcmp(type, "s"true))
    {
        mysql_format(dbHandle, string, sizeof(string), "UPDATE `users` SET `%s` = '%s' WHERE `ID` = '%d' LIMIT 1",
        field_name, set, pInfo[playerid][pID]);
    }
    mysql_function_query(dbHandle, string, false"""");
}
stock PlayerTextDraws(playerid)
{
    // == == == [ Выбор Скина ] == == ==
    select_skin[playerid][0] = TextDrawCreate(535.177124334.000000"usebox");
    TextDrawLetterSize(select_skin[playerid][0], 0.0000008.044445);
    TextDrawTextSize(select_skin[playerid][0], 426.6969290.000000);
    TextDrawAlignment(select_skin[playerid][0], 1);
    TextDrawColor(select_skin[playerid][0], 0);
    TextDrawUseBox(select_skin[playerid][0], true);
    TextDrawBoxColor(select_skin[playerid][0], 102);
    TextDrawSetShadow(select_skin[playerid][0], 0);
    TextDrawSetOutline(select_skin[playerid][0], 0);
    TextDrawFont(select_skin[playerid][0], 0);

    select_skin[playerid][1] = TextDrawCreate(475.674652350.333282"usebox");
    TextDrawLetterSize(select_skin[playerid][1], 0.0000002.275923);
    TextDrawTextSize(select_skin[playerid][1], 438.8780210.000000);
    TextDrawAlignment(select_skin[playerid][1], 1);
    TextDrawColor(select_skin[playerid][1], 0);
    TextDrawUseBox(select_skin[playerid][1], true);
    TextDrawBoxColor(select_skin[playerid][1], 102);
    TextDrawSetShadow(select_skin[playerid][1], 0);
    TextDrawSetOutline(select_skin[playerid][1], 0);
    TextDrawFont(select_skin[playerid][1], 0);

    select_skin[playerid][2] = TextDrawCreate(525.401245351.333251"usebox");
    TextDrawLetterSize(select_skin[playerid][2], 0.0000002.275923);
    TextDrawTextSize(select_skin[playerid][2], 488.5423580.000000);
    TextDrawAlignment(select_skin[playerid][2], 1);
    TextDrawColor(select_skin[playerid][2], 0);
    TextDrawUseBox(select_skin[playerid][2], true);
    TextDrawBoxColor(select_skin[playerid][2], 102);
    TextDrawSetShadow(select_skin[playerid][2], 0);
    TextDrawSetOutline(select_skin[playerid][2], 0);
    TextDrawFont(select_skin[playerid][2], 0);

    select_skin[playerid][3] = TextDrawCreate(501.101013383.833099"usebox");
    TextDrawLetterSize(select_skin[playerid][3], 0.0000002.229071);
    TextDrawTextSize(select_skin[playerid][3], 464.1788940.000000);
    TextDrawAlignment(select_skin[playerid][3], 1);
    TextDrawColor(select_skin[playerid][3], 0);
    TextDrawUseBox(select_skin[playerid][3], true);
    TextDrawBoxColor(select_skin[playerid][3], 102);
    TextDrawSetShadow(select_skin[playerid][3], 0);
    TextDrawSetOutline(select_skin[playerid][3], 0);
    TextDrawFont(select_skin[playerid][3], 0);

    select_skin[playerid][4] = TextDrawCreate(531.771606340.083312"LD_SPAC:white");
    TextDrawLetterSize(select_skin[playerid][4], 0.0000000.000000);
    TextDrawTextSize(select_skin[playerid][4], -101.200592, -6.416625);
    TextDrawAlignment(select_skin[playerid][4], 1);
    TextDrawColor(select_skin[playerid][4], -5963521);
    TextDrawSetShadow(select_skin[playerid][4], 0);
    TextDrawSetOutline(select_skin[playerid][4], 0);
    TextDrawFont(select_skin[playerid][4], 4);

    select_skin[playerid][5] = TextDrawCreate(472.800415352.749847"LD_SPAC:white");
    TextDrawLetterSize(select_skin[playerid][5], 0.0000000.000000);
    TextDrawTextSize(select_skin[playerid][5], -31.390945, -3.499959);
    TextDrawAlignment(select_skin[playerid][5], 1);
    TextDrawColor(select_skin[playerid][5], -1523963137);
    TextDrawSetShadow(select_skin[playerid][5], 0);
    TextDrawSetOutline(select_skin[playerid][5], 0);
    TextDrawFont(select_skin[playerid][5], 4);

    select_skin[playerid][6] = TextDrawCreate(522.526611353.749847"LD_SPAC:white");
    TextDrawLetterSize(select_skin[playerid][6], 0.0000000.000000);
    TextDrawTextSize(select_skin[playerid][6], -31.390945, -3.499959);
    TextDrawAlignment(select_skin[playerid][6], 1);
    TextDrawColor(select_skin[playerid][6], -1523963137);
    TextDrawSetShadow(select_skin[playerid][6], 0);
    TextDrawSetOutline(select_skin[playerid][6], 0);
    TextDrawFont(select_skin[playerid][6], 4);

    select_skin[playerid][7] = TextDrawCreate(498.226470385.666503"LD_SPAC:white");
    TextDrawLetterSize(select_skin[playerid][7], 0.0000000.000000);
    TextDrawTextSize(select_skin[playerid][7], -31.390945, -3.499959);
    TextDrawAlignment(select_skin[playerid][7], 1);
    TextDrawColor(select_skin[playerid][7], -1523963137);
    TextDrawSetShadow(select_skin[playerid][7], 0);
    TextDrawSetOutline(select_skin[playerid][7], 0);
    TextDrawFont(select_skin[playerid][7], 4);

    select_skin[playerid][8] = TextDrawCreate(458.682708348.833282"<");
    TextDrawLetterSize(select_skin[playerid][8], 0.9461632.708333);
    TextDrawTextSize(select_skin[playerid][8], 18.93560719.916625);
    TextDrawAlignment(select_skin[playerid][8], 2);
    TextDrawColor(select_skin[playerid][8], -1);
    TextDrawSetShadow(select_skin[playerid][8], 0);
    TextDrawSetOutline(select_skin[playerid][8], 2);
    TextDrawBackgroundColor(select_skin[playerid][8], 51);
    TextDrawFont(select_skin[playerid][8], 1);
    TextDrawSetProportional(select_skin[playerid][8], 1);
    TextDrawSetSelectable(select_skin[playerid][8], true);

    select_skin[playerid][9] = TextDrawCreate(510.283172349.249938">");
    TextDrawLetterSize(select_skin[playerid][9], 0.9461632.708333);
    TextDrawTextSize(select_skin[playerid][9], 18.93560719.916625);
    TextDrawAlignment(select_skin[playerid][9], 2);
    TextDrawColor(select_skin[playerid][9], -1);
    TextDrawSetShadow(select_skin[playerid][9], 0);
    TextDrawSetOutline(select_skin[playerid][9], 2);
    TextDrawBackgroundColor(select_skin[playerid][9], 51);
    TextDrawFont(select_skin[playerid][9], 1);
    TextDrawSetProportional(select_skin[playerid][9], 1);
    TextDrawSetSelectable(select_skin[playerid][9], true);

    select_skin[playerid][10] = TextDrawCreate(485.045806381.750061"><");
    TextDrawLetterSize(select_skin[playerid][10], 0.6833242.743333);
    TextDrawTextSize(select_skin[playerid][10], 18.93560728.916625);
    TextDrawAlignment(select_skin[playerid][10], 2);
    TextDrawColor(select_skin[playerid][10], -1);
    TextDrawSetShadow(select_skin[playerid][10], 0);
    TextDrawSetOutline(select_skin[playerid][10], 2);
    TextDrawBackgroundColor(select_skin[playerid][10], 51);
    TextDrawFont(select_skin[playerid][10], 1);
    TextDrawSetProportional(select_skin[playerid][10], 1);
    TextDrawSetSelectable(select_skin[playerid][10], true);
}
// == == == == [ Разное ] == == == ==
stock ConnectMySQL()
{
    dbHandle =mysql_connect(MySQL_Host, MySQL_User, MySQL_Base, MySQL_Pass);
    switch(mysql_errno())
    {
        case 0: print("MySQL - connected");
        default: print("MySQL - disconnect");
    }
    mysql_set_charset("cp1251");
}

 

Консоль

Спойлер


----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team

[13:31:10] filterscripts = ""  (string)
[13:31:10] 
[13:31:10] Server Plugins
[13:31:10] --------------
[13:31:10]  Loading plugin: crashdetect.so
[13:31:10]   CrashDetect plugin 4.21
[13:31:10]   Loaded.
[13:31:10]  Loading plugin: mysql_static.so
[13:31:10]  >> plugin.mysql: R39-6 successfully loaded.
[13:31:10]   Loaded.
[13:31:10]  Loading plugin: pawncmd.so
[13:31:10] Pawn.CMD plugin v3.2.0 by urShadow has been loaded
[13:31:10]   Loaded.
[13:31:10]  Loading plugin: streamer.so
[13:31:10] 

*** Streamer Plugin v2.9.1 by Incognito loaded ***

[13:31:10]   Loaded.
[13:31:10]  Loading plugin: CRP.so
[13:31:10] 

[13:31:10] ______________________________________

[13:31:10]  Convert Rus To Pwn v0.1.1 loaded
[13:31:10] ______________________________________

[13:31:10]  By: Fro (c) Copyright <TBG> 2009-2011
[13:31:10] ______________________________________

[13:31:10]   Loaded.
[13:31:10]  Loaded 5 plugins.

[13:31:10] 
[13:31:10] Filterscripts
[13:31:10] ---------------
[13:31:10]   Loaded 0 filterscripts.

[13:31:10] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[13:31:10] Script[gamemodes/Untitled.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
[13:31:10] Number of vehicle models: 0
 

 

Поделиться сообщением


Ссылка на сообщение
Поделиться на другие сайты

0 ответов на этот вопрос

Ответы на этот вопрос пока отсутствуют

Для публикации сообщений создайте учётную запись или авторизуйтесь

Вы должны быть пользователем, чтобы оставить комментарий

Создать учетную запись

Зарегистрируйте новую учётную запись в нашем сообществе. Это очень просто!


Регистрация нового пользователя

Войти

Уже есть аккаунт? Войти в систему.


Войти

  • Последние посетители   0 пользователей онлайн

    Ни одного зарегистрированного пользователя не просматривает данную страницу

  • Похожий контент

    • 1 deymonz
      От 1 deymonz


      Скачать файл Arizona RP мельников (2024)
      Полностью рабочая система доната на CEF, анимации на CEF, охранники, редактирование аксессуаров, покраска аксессуаров
      Новые скины, машины и аксессуары
      8 уровней админ-прав, 2 уровня фуллдоступа и прописка в моде (ilya.pwn)
      /admincommands для управления админ-командами

      Для отображения новых аксессуаров, люкс авто и скинов доступен вход с наших лаунчеров на версии Arizona Copy (работает вход с последней версии официальной сборки Arizona)
       
      Последняя версия мода от автора
      Добавил 1 deymonz Добавлено 06.06.2024 Категория Моды Автор Melnikov  
    • 1 deymonz
      От 1 deymonz
      Полностью рабочая система доната на CEF, анимации на CEF, охранники, редактирование аксессуаров, покраска аксессуаров
      Новые скины, машины и аксессуары
      8 уровней админ-прав, 2 уровня фуллдоступа и прописка в моде (ilya.pwn)
      /admincommands для управления админ-командами

      Для отображения новых аксессуаров, люкс авто и скинов доступен вход с наших лаунчеров на версии Arizona Copy (работает вход с последней версии официальной сборки Arizona)
       
      Последняя версия мода от автора
    • CoderX3
      От CoderX3
      Хотел убрать почту при регистрации на сервере ,все подравнял и errors летят,кто бы помог почту снести при реге