Player Registration Problem [Please Help] - 
JaysonJee -  12.11.2014
So Basically on my server when someone join they would have to enter a desired password and click register, however once they click register it will spawn them under the map in blueberry farm and there samp will just crash.
If you have a fix please help me 

 thanks
Re: Player Registration Problem [Please Help] - 
BornHuman -  12.11.2014
This could be due to tons of reasons, please post your entire registration system here.
Re: Player Registration Problem [Please Help] - 
JaysonJee -  12.11.2014
This what you get when you join the server, before whenyou clicked register you should get your tutorial however now when people click register it happens  
PHP код:
ShowMainMenuDialog(playerid, frame)
{
    new titlestring[64];
    new string[256];
    switch(frame)
    {
        case 1:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "{3399FF}Login - %s", GetPlayerNameEx(playerid));
            format(string, sizeof(string), "{FFFFFF}Welcome to Sin Life Roleplay , %s.\n\nIP Address: %s\n\nThe name that you are using is registered, please enter a password to login:", GetPlayerNameEx(playerid),  ip);
            ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit");
        }
        case 2:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "{3399FF}Register - %s", GetPlayerNameEx(playerid));
            format(string, sizeof(string), "{FFFFFF}Welcome to Sin Life Roleplay , %s.\n\nIP Address: %s\n\nYou may register an account by entering a desired password here:", GetPlayerNameEx(playerid),  ip);
            ShowPlayerDialog(playerid,MAINMENU2,DIALOG_STYLE_PASSWORD,titlestring,string,"Register","Exit");
        }
        case 3:
        {
            new ip[32];
            GetPlayerIp(playerid, ip, 32);
            format(titlestring, sizeof(titlestring), "{3399FF}Login - %s", GetPlayerNameEx(playerid));
            format(string, sizeof(string), "{FFFFFF}Invalid Password!\n\nWelcome to Sin Life Roleplay , %s.\n\nIP Address: %s\n\nThe name that you are using is registered, please enter a password to login:", GetPlayerNameEx(playerid),  ip);
            ShowPlayerDialog(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,string,"Login","Exit");
            if(PlayerInfo[playerid][pAdmin] >= 2)
            {
                format(STRING, "WARNING: {00ff00}Bad login attempt on admin account %s! IP: %s", GetPlayerNameEx(playerid), ip);
                ABroadCast(COLOR_LIGHTRED, string, 2);
            }
        }
    }
} 
 
PHP код:
    if(dialogid == 10421)
    {
        if(!response) Kick(playerid);
    }
    if(dialogid == 10422)
    {
        if(!response) Kick(playerid);
    }
    
    if(dialogid == DIALOG_SHOW_TUTORIAL)
    {
        if(response || !response)
        {
            if(InsideTut[playerid] < 1)
            {
                return 1;
            }
            switch(TutStep[playerid])
            {
                case 1:
                {
                    new str[1024];
                    ClearChatbox(playerid);
                    HideTutGUIFrame(playerid, 1);
                    ShowTutGUIFrame(playerid, 2);
                    TutStep[playerid] = 2;
                    // Los Santos Bank (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid, 1457.4854,-1011.5267,26.8438);
                    SetPlayerPos(playerid, 1457.4854,-1011.5267,-10.0);
                    SetPlayerCameraPos(playerid, 1457.5421,-1039.4404,28.4274);
                    SetPlayerCameraLookAt(playerid, 1457.4854,-1011.5267,26.8438);
                    strcat(str, "{FFFFFF}MilZ LA Roleplay has several jobs you can do across the town.\n");
                    strcat(str, "Look for the yellow i icons next to them for job information.\n");
                    strcat(str, "This is the Wells Fargo Bank. Here you can use /withdraw & /deposit to manage your $.\n");
                    strcat(str, "If you are bold you can /rob the bank! Lookout for the silent alarms and the cops!\n");
                    strcat(str, "{FF8000}Pres next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Managing Your Money", str, "Next", "Cancel");
                }
                case 2:
                {
                    new str[1024];
                    ClearChatbox(playerid);
                    HideTutGUIFrame(playerid, 2);
                    ShowTutGUIFrame(playerid, 3);
                    TutStep[playerid] = 3;
                    // Los Santos ATM (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid, 2140.5173,-1163.9576,23.9922);
                    SetPlayerPos(playerid, 2140.5173,-1163.9576,-10.0);
                    SetPlayerCameraPos(playerid, 2145.8252,-1159.2659,27.7218);
                    SetPlayerCameraLookAt(playerid, 2140.5173,-1163.9576,23.9922);
                    strcat(str, "{FFFFFF}There are dozens of ATMs around the city of LA.\n");
                    strcat(str, "This are placed to make managing your money more convenient.\n");
                    strcat(str, "You can use /atmwithdraw and /atmdeposit.\n");
                    strcat(str, "There is a small service charge for using a ATM.\n");
                    strcat(str, "{FF8000}Pres next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Managing Your Money", str, "Next", "Cancel");
                }
                case 3:
                {
                    new str[1024];
                    ClearChatbox(playerid);
                    HideTutGUIFrame(playerid, 3);
                    ShowTutGUIFrame(playerid, 4);
                    TutStep[playerid] = 4;
                    // Fishing Pier (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid, 370.0804,-2087.8767,7.8359);
                    SetPlayerPos(playerid, 370.0804,-2087.8767,-10.0);
                    SetPlayerCameraPos(playerid, 423.3802,-2067.7915,29.8605);
                    SetPlayerCameraLookAt(playerid, 370.0804,-2087.8767,7.8359);
                    strcat(str, "{FFFFFF}This is the fishing pier. It is located near verona beach.\n");
                    strcat(str, "Here you can use /fish to start fishing.\n");
                    strcat(str, "Each time you catch a fish you will be able to sell it and earn some money.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Making Money: Fishing", str, "Next", "Cancel");
                }
                case 4:
                {
                    new str[1024];
                    ClearChatbox(playerid);
                    HideTutGUIFrame(playerid, 4);
                    ShowTutGUIFrame(playerid, 5);
                    TutStep[playerid] = 5;
                    // Ganton Gym (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid, 2229.4968,-1722.0701,13.5625);
                    SetPlayerPos(playerid, 2229.4968,-1722.0701,-10.0);
                    SetPlayerCameraPos(playerid, 2211.1460,-1748.3909,29.3744);
                    SetPlayerCameraLookAt(playerid, 2229.4968,-1722.0701,13.5625);
                    strcat(str, "{FFFFFF}This is the Ganton Gym. Here you can work out, box people,\n");
                    strcat(str, " or become a bodyguard. If you win a boxing match you earn $.\n");
                    strcat(str, "If you win enough matches you can become the LA Boxing Champion.\n");
                    strcat(str, "If you accept the Bodyguard job you can become peoples personal\n");
                    strcat(str, " guard. You can fix your own price to charge whatever you wish.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Bodyguard and Boxing", str, "Next", "Cancel");
                }
                case 5:
                {
                    new str[1024];
                    ClearChatbox(playerid);
                    HideTutGUIFrame(playerid, 5);
                    ShowTutGUIFrame(playerid, 6);
                    TutStep[playerid] = 6;
                    // Arms Dealer (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid, 1366.1187,-1275.1248,13.5469);
                    SetPlayerPos(playerid, 1366.1187,-1275.1248,-10.0);
                    SetPlayerCameraPos(playerid, 1341.2936,-1294.8105,23.3096);
                    SetPlayerCameraLookAt(playerid, 1366.1187,-1275.1248,13.5469);
                    strcat(str, "{FFFFFF}This is the ammu-nation.\n Here you will find the arms dealer job.\n");
                    strcat(str, "With this job you can make your own weapons and sell them.\n");
                    strcat(str, "Before you can start making weapons and selling them you need");
                    strcat(str, " to find mats.\n There is a mats store near the pizza shop. \n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Arms Dealer", str, "Next", "Cancel");
                }
                case 6:
                {
                    new str[1024];
                    ClearChatbox(playerid);
                    HideTutGUIFrame(playerid, 6);
                    ShowTutGUIFrame(playerid, 7);
                    TutStep[playerid] = 7;
                    // Drugs Dealer (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid, 2167.5542,-1673.1503,15.0812);
                    SetPlayerPos(playerid, 2167.5542,-1673.1503,-10.0);
                    SetPlayerCameraPos(playerid, 2186.2607,-1693.4254,29.5406);
                    SetPlayerCameraLookAt(playerid, 2167.5542,-1673.1503,15.0812);
                    strcat(str, "{FFFFFF}This is the local drug house.\n");
                    strcat(str, "With this job you can get seeds and plant drug plants.\n");
                    strcat(str, "When the plant is fully grown you can then pick it, \n and");
                    strcat(str, " then sell them to other players. You can also goto the crack\n");
                    strcat(str, " lab and get crack and sell it as well.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Drug Dealing", str, "Next", "Cancel");
                }
                case 7:
                {
                    new str[1024];
                    ClearChatbox(playerid);
                    HideTutGUIFrame(playerid, 7);
                    ShowTutGUIFrame(playerid, 8);
                    TutStep[playerid] = 8;
                    // Drugs Smuggler (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid, 59.9634,-283.6652,1.5781);
                    SetPlayerPos(playerid, 59.9634,-283.6652,-10.0);
                    SetPlayerCameraPos(playerid, 96.4630,-216.5790,34.2965);
                    SetPlayerCameraLookAt(playerid, 59.9634,-283.6652,1.5781);
                    strcat(str, "{FFFFFF}The Smuggler job is a private job that is hidden in the city.\n");
                    strcat(str, "Doing this job you can get a lot of money, really fast.\n");
                    strcat(str, "It consists of picking up crates and delivering the contents \n");
                    strcat(str, " to drug houses around la. Be careful though, if the law catches \n");
                    strcat(str, " you running these drugs you can do hard time.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Smuggler Job", str, "Next", "Cancel");
                }
                case 8:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 8);
                    ShowTutGUIFrame(playerid, 9);
                    TutStep[playerid] = 9;
                    ClearChatbox(playerid);
                    // LSPD (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid, 1554.3381,-1675.5692,16.1953);
                    SetPlayerPos(playerid, 1554.3381,-1675.5692,-10.0);
                    SetPlayerCameraPos(playerid, 1514.7783,-1700.2913,36.7506);
                    SetPlayerCameraLookAt(playerid, 1554.3381,-1675.5692,16.1953);
                    strcat(str, "{FFFFFF}In MilZ LA Roleplay there are 2 law enforcement factions.\n");
                    strcat(str, "1. Los Angeles Police - patrols the City of Los Angeles.\n");
                    strcat(str, "2. LA County Sheriff's Office - patrols the city and county of Los Angeles.\n");
                    strcat(str, "If you break the laws you may be placed in jail and/or fined.\n");
                    strcat(str, "If you want a job in Law Enf. join Dept of Corrections @ at www.milzroleplayforums.boards.net\n");
                    strcat(str, "If you want to report a emergency, buy a cellphone and /call 911.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Law Enforcement", str, "Next", "Cancel");
                }
                case 9:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 9);
                    ShowTutGUIFrame(playerid, 10);
                    TutStep[playerid] = 10;
                    ClearChatbox(playerid);
                    // All Saints (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,1175.5581,-1324.7922,18.1610);
                    SetPlayerPos(playerid, 1188.4574,-1309.2242,-10.0);
                    SetPlayerCameraPos(playerid,1188.4574,-1309.2242,13.5625+6.0);
                    SetPlayerCameraLookAt(playerid,1175.5581,-1324.7922,18.1610);
                    strcat(str, "{FFFFFF}f you get injured, you can use /service ems to call for help.\n");
                    strcat(str, "If EMS saves you before you pass out you may be able to keep your");
                    strcat(str, " personal belongings without losing them.\n");
                    strcat(str, " When the LAFD is hiring they will open applications on the forums.");
                    strcat(str, " at www.milzroleplayforums.boards.net\n");
                    strcat(str, "If you want to report a emergency, buy a cellphone and /call 911.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Los Angeles Fire Department - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 10:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 10);
                    ShowTutGUIFrame(playerid, 11);
                    TutStep[playerid] = 11;
                    ClearChatbox(playerid);
                    // San Andreas News (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,643.6738,-1348.9811,17.7879);
                    SetPlayerPos(playerid, 643.6738,-1348.9811,-10.0);
                    SetPlayerCameraPos(playerid,616.4327,-1336.6818,20.9202);
                    SetPlayerCameraLookAt(playerid,643.6738,-1348.9811,17.7879);
                    strcat(str, "{FFFFFF}This is the Fox 11 News Station. They handle all the news and weather");
                    strcat(str, " within Los Angeles.\n They report anything from gang riors and government corruption to bank robberies.\n");
                    strcat(str, "They also hold live interviews that you can");
                    strcat(str, " watch on your TV.\n If you want to apply for this faction, apply on the forums at");
                    strcat(str, " www.milzroleplayforums.boards.net \n If you want to sell items you can place a ad by using '/ad'.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Fox 11 News - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 11:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 11);
                    ShowTutGUIFrame(playerid, 12);
                    TutStep[playerid] = 12;
                    ClearChatbox(playerid);
                    // Government (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,1478.4708,-1754.7579,16.7400);
                    SetPlayerPos(playerid, 1478.4708,-1754.7579,-10.0);
                    SetPlayerCameraPos(playerid,1520.2188,-1712.0742,40.5350);
                    SetPlayerCameraLookAt(playerid,1478.4708,-1754.7579,16.7400);
                    strcat(str, "{FFFFFF}This is City Hall. The Mayor and other government staff make all the decisions");
                    strcat(str, " within Los Angeles. \n They make the laws, set taxes and pay city wages.\n");
                    strcat(str, "This faction is not active and is managed by the Admins.\n");
                    strcat(str, "You need to go here to get your drivers license after you begin.\n");
                    strcat(str, "You can also donate your money to charity by using '/charity'.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Government - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 12:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 12);
                    ShowTutGUIFrame(playerid, 13);
                    TutStep[playerid] = 13;
                    ClearChatbox(playerid);
                    // TR (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,-2679.5342,1639.0643,65.8865);
                    SetPlayerPos(playerid, -2679.5342,1639.0643,-10.0);
                    SetPlayerCameraPos(playerid,-2734.3477,1520.4971,87.1810);
                    SetPlayerCameraLookAt(playerid,-2679.5342,1639.0643,65.8865);
                    strcat(str, "This server is restricted to the city and county surrounding Los Angeles.\n");
                    strcat(str, "Please do not leave the RP area by vehicle, foot, or swimming.\n");
                    strcat(str, "Use of lethal force, incarceration, and/or banishment authorized upon Violation.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Restrictions - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 13:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 13);
                    ShowTutGUIFrame(playerid, 14);
                    TutStep[playerid] = 14;
                    ClearChatbox(playerid);
                    // Gang SaC Beach (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,655.5394,-1867.2231,5.4609);
                    SetPlayerPos(playerid, 655.5394,-1867.2231,-10.0);
                    SetPlayerCameraPos(playerid,699.7435,-1936.7568,24.8646);
                    SetPlayerCameraLookAt(playerid,655.5394,-1867.2231,5.4609);
                    strcat(str, "{FFFFFF}Los Angeles has several different crime related gangs and families to join.\n");
                    strcat(str, "You can type '/families' to display a list of gangs. \n Gangs can take");
                    strcat(str, " control of the weapons and drug trade to earn a lot of cash.\n");
                    strcat(str, "If you want to join a gang talk to there gang leaders or apply on the forums @ www.milzroleplayforums.boards.net.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Gangs and Families - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 14:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 14);
                    ShowTutGUIFrame(playerid, 15);
                    TutStep[playerid] = 15;
                    ClearChatbox(playerid);
                    // 24/7 Store (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,1315.6570,-898.7749,39.5781);
                    SetPlayerPos(playerid, 1315.6570,-898.7749,-10.0);
                    SetPlayerCameraPos(playerid,1315.4285,-922.5234,44.0355);
                    SetPlayerCameraLookAt(playerid,1315.6570,-898.7749,39.5781);
                    strcat(str, "{FFFFFF}You can purchase a variety of different items with the '/buy' command");
                    strcat(str, " from any 24/7. \n Buying a cellphone will give you the ability to call and text other players.\n");
                    strcat(str, "24/7 stores appear as a green dollar sign on your mini-map.\n");
                    strcat(str, "V.I.P's get special discounts from these stores.\n");
                    strcat(str, "You can buy a lock for your car with /buylock.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - 24/7 Superstores - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 15:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 15);
                    ShowTutGUIFrame(playerid, 16);
                    TutStep[playerid] = 16;
                    ClearChatbox(playerid);
                    // Clothing Store (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,1457.1664,-1138.0111,26.6261);
                    SetPlayerPos(playerid, 1457.1664,-1138.0111,-10.0);
                    SetPlayerCameraPos(playerid,1459.0411,-1156.4342,33.4464);
                    SetPlayerCameraLookAt(playerid,1457.1664,-1138.0111,26.6261);
                    strcat(str, "{FFFFFF}You can buy different skins from any clothing store around LA.\n");
                    strcat(str, "You can also buy hundreds of different accsessories from any clothing store.\n");
                    strcat(str, "VIPs get an unrestricted selection of skins from these stores.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Clothing Store  - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 16:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 16);
                    ShowTutGUIFrame(playerid, 17);
                    TutStep[playerid] = 17;
                    ClearChatbox(playerid);
                    // Car Dealership (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,1656.6107,-1892.3878,13.5521);
                    SetPlayerPos(playerid,1656.6107,-1892.3878,-10.0);
                    SetPlayerCameraPos(playerid,1678.1699,-1863.5964,22.9622);
                    SetPlayerCameraLookAt(playerid,1656.6107,-1892.3878,13.5521);
                    strcat(str, "{FFFFFF}You can purchase different vehicles from the auto mall under the central interchange.\n");
                    strcat(str, "Once you buy your car, you can control it with the '/car' command. \n Be carful not to leave it");
                    strcat(str, " parked in no parking areas, as it might get impounded!\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Vehicle Dealership  - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 17:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 17);
                    ShowTutGUIFrame(playerid, 18);
                    TutStep[playerid] = 18;
                    ClearChatbox(playerid);
                    // Los Santos (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,1607.0160,-1510.8218,207.4438);
                    SetPlayerPos(playerid,1607.0160,-1510.8218,-10.0);
                    SetPlayerCameraPos(playerid,1850.1813,-1765.7552,81.9271);
                    SetPlayerCameraLookAt(playerid,1607.0160,-1510.8218,207.4438);
                    strcat(str, "{FFFFFF}You can buy houses all across LA. \n Houses are player ownable that you can purchase");
                    strcat(str, " from other players or buy on your own. \n You can store materials, drugs and money.\n");
                    strcat(str, "You can store materials, drugs and money in your house to keep it safe as long as you own the house.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Houses  - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 18:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 18);
                    ShowTutGUIFrame(playerid, 19);
                    TutStep[playerid] = 19;
                    ClearChatbox(playerid);
                    // VIP (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,1797.3397,-1578.3440,14.0798);
                    SetPlayerPos(playerid,1797.3397,-1578.3440,-10.0);
                    SetPlayerCameraPos(playerid,1832.1698,-1600.1538,32.2877);
                    SetPlayerCameraLookAt(playerid,1797.3397,-1578.3440,14.0798);
                    strcat(str, "{FFFFFF}Just like any other RP server you must abide by Traffic Laws.\n");
                    strcat(str, "-Drive at a reasonable speeds that keep you in control of your vehicle.\n");
                    strcat(str, "-Traffic lights are synced! Red=Stop | Yellow=Slow Down | Green=Go.\n");
                    strcat(str, "-Only follow traffic lights above a junction. (Marked with a solid white line)\n");
                    strcat(str, "-YIELD for emergency lights and siren.\n");
                    strcat(str, "-Remain at a safe distance from other vehicles when driving.\n");
                    strcat(str, "-Drive how you would in real life. Dont be a moron.\n");
                    strcat(str, "-Check /tlaws for more info.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Traffic Laws  - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 19:
                {
                    new str[1024];
                    HideTutGUIFrame(playerid, 19);
                    ShowTutGUIFrame(playerid, 20);
                    TutStep[playerid] = 20;
                    ClearChatbox(playerid);
                    // Unity Station (Camera)
                    SetPlayerVirtualWorld(playerid, 0);
                    SetPlayerInterior(playerid, 0);
                    Streamer_UpdateEx(playerid,1716.1129,-1880.0715,22.0264);
                    SetPlayerPos(playerid,1716.1129,-1880.0715,-10.0);
                    SetPlayerCameraPos(playerid,1755.0413,-1824.8710,20.2100);
                    SetPlayerCameraLookAt(playerid,1716.1129,-1880.0715,22.0264);
                    strcat(str, "{FFFFFF}-Deathmatching is not allowed. Hacks are not allowed.\n");
                    strcat(str, "-English is the official language. Foul language (OOC) is not allowed.\n");
                    strcat(str, "-Foul language (in char) is allowed.\n");
                    strcat(str, "-Do not carpark or log to avoid an RP.\n");
                    strcat(str, "-For more info type /rules.\n");
                    strcat(str, "{FF8000}Press next to continue.");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Basic Rules  - www.milzroleplayforums.boards.net", str, "Next", "Cancel");
                }
                case 20:
                {
                    new str[1024];
                    HideTutGUIBox(playerid);
                    HideTutGUIFrame(playerid, 20);
                    TutStep[playerid] = 0;
                    ClearChatbox(playerid);
                    PlayerInfo[playerid][pTut] = 1;
                    gOoc[playerid] = 0; gNews[playerid] = 0; gFam[playerid] = 0;
                    TogglePlayerControllable(playerid, 1);
                    SetCamBack(playerid);
                    DeletePVar(playerid, "MedicBill");
                    SetPlayerColor(playerid,TEAM_HIT_COLOR);
                    SetPlayerInterior(playerid,0);
                    SetPlayerPos(playerid, 1722.7611,-1915.6167,13.5647);
                    SetPlayerFacingAngle(playerid, 359.4621);
                    SetCameraBehindPlayer(playerid);
                    SetPlayerVirtualWorld(playerid, 0);
                    strcat(str, "{FFFFFF}This tutorial was designed to help you get started in the server.\n");
                    strcat(str, "If you have any question you can either talk in '/newb' or '/requesthelp'\n");
                    strcat(str, "Make sure to sign-up on the forums @ www.milzroleplayforums.boards.net\n");
                    strcat(str, "Teamspeak Server: ts.milzroleplayforums.boards.net:10126 \n");
                    strcat(str, "Thank you, and we hope you have a nice experence in Sin Life Roleplay!\n");
                    ShowPlayerDialog(playerid, DIALOG_SHOW_TUTORIAL, DIALOG_STYLE_MSGBOX, "{33CCFF}Tutorial - Wrapping things up  - www.milzroleplayforums.boards.net", str, "Ok", "Cancel");
                }
            }
        }
    } 
 
 
Re: Player Registration Problem [Please Help] - 
Dziugsas -  12.11.2014
Show us OnPlayerSpawn and the server.log.
Re: Player Registration Problem [Please Help] - 
JaysonJee -  12.11.2014
PHP код:
[20:52:15]  
[20:52:15]  ======================================= 
[20:52:15]  |                                     | 
[20:52:15]  |        YSI version 1.03.0011        | 
[20:52:15]  |        By Alex "******" Cole        | 
[20:52:15]  |                                     | 
[20:52:15]  |  Checking the latest YSI version..  | 
[20:52:15]  |                                     | 
[20:52:15]  ======================================= 
[20:52:15]  
[20:52:15] onfoot_rate = 40  (int, read-only)
[20:52:15] *** Audio Plugin: Started TCP server on port 7777
[20:52:15] incar_rate = 40  (int, read-only)
[20:52:15] weapon_rate = 40  (int, read-only)
[20:52:15] *** Audio_SetPack: Error opening audio.ini
[20:52:15]   <dmap> DMap 0.3 // © 2008 DracoBlue // http://www.dracoblue.net
[20:52:15]   <dmap> Loading ...
[20:52:15]   <dmap> .. done!
[20:53:04] [script] 3DTEXTDRAW LIMIT: 1024 (Static, non-streamed) | 3DTEXTDRAW COUNT: 1692
[20:53:04] [script] PICKUP LIMIT: 4096 (Static, non-streamed) | PICKUP COUNT: 1559
[20:53:04] [script] OBJECT LIMIT: 1000 (Static, non-streamed) | OBJECT COUNT: 15167
[20:53:04] Number of vehicle models: 78
[20:53:04]  
[20:53:04]  ========================================== 
[20:53:04]  |                                        | 
[20:53:04]  |  A new version (v3.09.0684) of YSI is  | 
[20:53:04]  |            available from:             | 
[20:53:04]  |                                        | 
[20:53:04]  |     www.y-less.com/YSI/YSI_1.0.zip     | 
[20:53:04]  |                                        | 
[20:53:04]  | Changelog:                             | 
[20:53:04]  |                                        | 
[20:53:04]  |   1.04.0000:                           | 
[20:53:04]  |                                        | 
[20:53:04]  |   RC 1 for YSI 3.0.  Available from:   | 
[20:53:04]  | http://www.y-less.com/YSI/YSI_3.0.rar  | 
[20:53:04]  | - includes MANY new libraries and      | 
[20:53:04]  | fixes, see                             | 
[20:53:04]  | http://forum.sa-mp.com/showthread.php? | 
[20:53:04]  | p=1425938 for more information, with   | 
[20:53:04]  | more topics and updates due over the   | 
[20:53:04]  | next few weeks.  In brief: Added       | 
[20:53:04]  | "y_inline", "y_text", "y_users",       | 
[20:53:04]  | "y_uvar", "y_svar", "y_remote";        | 
[20:53:04]  | updated "y_timers", "y_iter"; MANY     | 
[20:53:04]  | MANY fixes and tweaks in almost every  | 
[20:53:04]  | other library.                         | 
[20:53:04]  |                                        | 
[20:53:04]  |   3.00.0000:                           | 
[20:53:04]  |                                        | 
[20:53:04]  |   YSI 3.0 released!  Now includes the  | 
[20:53:04]  | "y_text" library for better messages,  | 
[20:53:04]  | and a reworked "y_classes" library.    | 
[20:53:04]  | Largely documented here                | 
[20:53:04]  | "http://forum.sa-mp.com/showthread.php | 
[20:53:04]  | ?t=321092".                            | 
[20:53:04]  |                                        | 
[20:53:04]  |   3.01.0002:                           | 
[20:53:04]  |                                        | 
[20:53:04]  |   Small fixes to "y_text" and          | 
[20:53:04]  | "y_classes".                           | 
[20:53:04]  |                                        | 
[20:53:04]  |   3.09.0684:                           | 
[20:53:04]  |                                        | 
[20:53:04]  |   Reverted to old download location.   | 
[20:53:04]  | Improved (and fixed) version checks;   | 
[20:53:04]  | added y_bitmap, y_areas, y_races,      | 
[20:53:04]  | y_zonenames, better documentation;     | 
[20:53:04]  | MANY other bug fixes - see the github  | 
[20:53:04]  | repository for more details:           | 
[20:53:04]  |                                        | 
[20:53:04]  ========================================== 
[20:53:04]  
[20:53:04] New version of CrashDetect is available for download (4.13)
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3z-R4, (C)2005-2014 SA-MP Team
[20:53:21] filterscripts = ""  (string)
[20:53:21] 
[20:53:21] Server Plugins
[20:53:21] --------------
[20:53:21]  Loading plugin: crashdetect.dll
[20:53:21]   CrashDetect v4.12 is OK.
[20:53:21]   Loaded.
[20:53:21]  Loading plugin: streamer.dll
[20:53:21]   Loaded.
[20:53:21]  Loading plugin: audio.dll
[20:53:21] 
*** Audio Plugin v0.5 R2 by Incognito loaded ***
[20:53:21]   Loaded.
[20:53:21]  Loading plugin: sscanf.dll
[20:53:21] 
[20:53:21]  ===============================
[20:53:21]       sscanf plugin loaded.     
[20:53:21]    (c) 2009 Alex "******" Cole
[20:53:21]    0.3d-R2 500 Players "dnee"
[20:53:21]  ===============================
[20:53:21]   Loaded.
[20:53:21]  Loading plugin: whirlpool.dll
[20:53:21]  
[20:53:21]  ==================
[20:53:21]  
[20:53:21]   Whirlpool loaded
[20:53:21]  
[20:53:21]  ==================
[20:53:21]  
[20:53:21]   Loaded.
[20:53:21]  Loaded 5 plugins.
[20:53:21] 
[20:53:21] Filterscripts
[20:53:21] ---------------
[20:53:21]   Loaded 0 filterscripts.
[20:53:21]  
[20:53:21]  ======================================= 
[20:53:21]  |                                     | 
[20:53:21]  |        YSI version 1.03.0011        | 
[20:53:21]  |        By Alex "******" Cole        | 
[20:53:21]  |                                     | 
[20:53:21]  |  Checking the latest YSI version..  | 
[20:53:21]  |                                     | 
[20:53:21]  ======================================= 
[20:53:21]  
[20:53:21] onfoot_rate = 40  (int, read-only)
[20:53:21] *** Audio Plugin: Started TCP server on port 7777
[20:53:21] incar_rate = 40  (int, read-only)
[20:53:21] weapon_rate = 40  (int, read-only)
[20:53:21] *** Audio_SetPack: Error opening audio.ini
[20:53:21]   <dmap> DMap 0.3 // © 2008 DracoBlue // http://www.dracoblue.net
[20:53:21]   <dmap> Loading ...
[20:53:21]   <dmap> .. done!
[20:54:38] Incoming connection: 86.25.160.28:54875
[20:54:38] [join] Jackie_Chan has joined the server (0:86.25.160.28)
[20:54:52] Jackie_Chan has logged in.
[20:54:52]  Loading Jackie_Chan's vehicles.
[20:54:55] Warning: client exceeded 'ackslimit' 86.25.160.28:54875 (3055) Limit: 3000/sec
[20:55:06]  Unloading Jackie_Chan's vehicles.
[20:55:06] [part] Jackie_Chan has left the server (0:0) 
 
 
Re: Player Registration Problem [Please Help] - 
JaysonJee -  12.11.2014
this is the onplayerspawn
PHP код:
public OnPlayerSpawn(playerid)
{
    if(!gPlayerLogged{playerid})
    {
        SendClientMessageEx(playerid, COLOR_WHITE, "ERROR: You are not logged in!");
        Kick(playerid);
        return 1;
    }
    Streamer_Update(playerid);
    if(GetPVarInt(playerid, "WreckingGate"))
    {
        DestroyObject(GetPVarInt(playerid, "WreckingGate"));
        DeletePVar(playerid, "WreckingGate");
        return 1;
    }
    if(GetPVarInt(playerid, "NGPassenger") == 1)
    {
        new Float:X, Float:Y, Float:Z;
        GetVehiclePos(GetPVarInt(playerid, "NGPassengerVeh"), X, Y, Z);
        SetPlayerPos(playerid, (X-2.557), (Y-3.049), Z);
        SetPlayerWeaponsEx(playerid);
        GivePlayerValidWeapon(playerid, 46, 60000);
        SetPlayerSkin(playerid, GetPVarInt(playerid, "NGPassengerSkin"));
        SetPlayerHealth(playerid, GetPVarFloat(playerid, "NGPassengerHP"));
        SetPlayerArmour(playerid, GetPVarFloat(playerid, "NGPassengerArmor"));
        DeletePVar(playerid, "NGPassenger");
        DeletePVar(playerid, "NGPassengerVeh");
        DeletePVar(playerid, "NGPassengerArmor");
        DeletePVar(playerid, "NGPassengerHP");
        DeletePVar(playerid, "NGPassengerSkin");
        return 1;
    }
    if(InsideShamal[playerid] != INVALID_VEHICLE_ID)
    {
        SetPlayerPos(playerid, GetPVarFloat(playerid, "air_Xpos"), GetPVarFloat(playerid, "air_Ypos"), GetPVarFloat(playerid, "air_Zpos"));
        SetPlayerFacingAngle(playerid, GetPVarFloat(playerid, "air_Rpos"));
        SetPlayerHealth(playerid, GetPVarFloat(playerid, "air_HP"));
        SetPlayerArmour(playerid, GetPVarFloat(playerid, "air_Arm"));
        SetPlayerWeaponsEx(playerid);
        SetPlayerToTeamColor(playerid);
        SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
        DeletePVar(playerid, "air_Xpos");
        DeletePVar(playerid, "air_Ypos");
        DeletePVar(playerid, "air_Zpos");
        DeletePVar(playerid, "air_Rpos");
        DeletePVar(playerid, "air_HP");
        DeletePVar(playerid, "air_Arm");
        SetCameraBehindPlayer(playerid);
        SetPlayerVirtualWorld(playerid, InsideShamal[playerid]);
        return SetPlayerInterior(playerid, 1);
    } 
 
Re: Player Registration Problem [Please Help] - 
Dziugsas -  12.11.2014
Well i already see the problem of the crash.You need to increase ackslimit. 
EDIT: Download Server R5 from forums.
Re: Player Registration Problem [Please Help] - 
JaysonJee -  12.11.2014
can you tell me what to do brother?
Re: Player Registration Problem [Please Help] - 
Dziugsas -  12.11.2014
Update your server 
https://sampforum.blast.hk/showthread.php?tid=531302
Re: Player Registration Problem [Please Help] - 
JaysonJee -  12.11.2014
do i only drag the exe files? or i drag all the files from the link you gave me to the gamemode and replace?