Player Registration Problem [Please Help]
#1

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
Reply
#2

This could be due to tons of reasons, please post your entire registration system here.
Reply
#3

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(playeridframe)
{
    new 
titlestring[64];
    new 
string[256];
    switch(
frame)
    {
        case 
1:
        {
            new 
ip[32];
            
GetPlayerIp(playeridip32);
            
format(titlestringsizeof(titlestring), "{3399FF}Login - %s"GetPlayerNameEx(playerid));
            
format(stringsizeof(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(playeridip32);
            
format(titlestringsizeof(titlestring), "{3399FF}Register - %s"GetPlayerNameEx(playerid));
            
format(stringsizeof(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(playeridip32);
            
format(titlestringsizeof(titlestring), "{3399FF}Login - %s"GetPlayerNameEx(playerid));
            
format(stringsizeof(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_LIGHTREDstring2);
            }
        }
    }

PHP код:
    if(dialogid == 10421)
    {
        if(!
responseKick(playerid);
    }
    if(
dialogid == 10422)
    {
        if(!
responseKick(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(playerid1);
                    
ShowTutGUIFrame(playerid2);
                    
TutStep[playerid] = 2;
                    
// Los Santos Bank (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid1457.4854,-1011.5267,26.8438);
                    
SetPlayerPos(playerid1457.4854,-1011.5267,-10.0);
                    
SetPlayerCameraPos(playerid1457.5421,-1039.4404,28.4274);
                    
SetPlayerCameraLookAt(playerid1457.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Managing Your Money"str"Next""Cancel");
                }
                case 
2:
                {
                    new 
str[1024];
                    
ClearChatbox(playerid);
                    
HideTutGUIFrame(playerid2);
                    
ShowTutGUIFrame(playerid3);
                    
TutStep[playerid] = 3;
                    
// Los Santos ATM (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid2140.5173,-1163.9576,23.9922);
                    
SetPlayerPos(playerid2140.5173,-1163.9576,-10.0);
                    
SetPlayerCameraPos(playerid2145.8252,-1159.2659,27.7218);
                    
SetPlayerCameraLookAt(playerid2140.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Managing Your Money"str"Next""Cancel");
                }
                case 
3:
                {
                    new 
str[1024];
                    
ClearChatbox(playerid);
                    
HideTutGUIFrame(playerid3);
                    
ShowTutGUIFrame(playerid4);
                    
TutStep[playerid] = 4;
                    
// Fishing Pier (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid370.0804,-2087.8767,7.8359);
                    
SetPlayerPos(playerid370.0804,-2087.8767,-10.0);
                    
SetPlayerCameraPos(playerid423.3802,-2067.7915,29.8605);
                    
SetPlayerCameraLookAt(playerid370.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Making Money: Fishing"str"Next""Cancel");
                }
                case 
4:
                {
                    new 
str[1024];
                    
ClearChatbox(playerid);
                    
HideTutGUIFrame(playerid4);
                    
ShowTutGUIFrame(playerid5);
                    
TutStep[playerid] = 5;
                    
// Ganton Gym (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid2229.4968,-1722.0701,13.5625);
                    
SetPlayerPos(playerid2229.4968,-1722.0701,-10.0);
                    
SetPlayerCameraPos(playerid2211.1460,-1748.3909,29.3744);
                    
SetPlayerCameraLookAt(playerid2229.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Bodyguard and Boxing"str"Next""Cancel");
                }
                case 
5:
                {
                    new 
str[1024];
                    
ClearChatbox(playerid);
                    
HideTutGUIFrame(playerid5);
                    
ShowTutGUIFrame(playerid6);
                    
TutStep[playerid] = 6;
                    
// Arms Dealer (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid1366.1187,-1275.1248,13.5469);
                    
SetPlayerPos(playerid1366.1187,-1275.1248,-10.0);
                    
SetPlayerCameraPos(playerid1341.2936,-1294.8105,23.3096);
                    
SetPlayerCameraLookAt(playerid1366.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Arms Dealer"str"Next""Cancel");
                }
                case 
6:
                {
                    new 
str[1024];
                    
ClearChatbox(playerid);
                    
HideTutGUIFrame(playerid6);
                    
ShowTutGUIFrame(playerid7);
                    
TutStep[playerid] = 7;
                    
// Drugs Dealer (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid2167.5542,-1673.1503,15.0812);
                    
SetPlayerPos(playerid2167.5542,-1673.1503,-10.0);
                    
SetPlayerCameraPos(playerid2186.2607,-1693.4254,29.5406);
                    
SetPlayerCameraLookAt(playerid2167.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Drug Dealing"str"Next""Cancel");
                }
                case 
7:
                {
                    new 
str[1024];
                    
ClearChatbox(playerid);
                    
HideTutGUIFrame(playerid7);
                    
ShowTutGUIFrame(playerid8);
                    
TutStep[playerid] = 8;
                    
// Drugs Smuggler (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid59.9634,-283.6652,1.5781);
                    
SetPlayerPos(playerid59.9634,-283.6652,-10.0);
                    
SetPlayerCameraPos(playerid96.4630,-216.5790,34.2965);
                    
SetPlayerCameraLookAt(playerid59.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Smuggler Job"str"Next""Cancel");
                }
                case 
8:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid8);
                    
ShowTutGUIFrame(playerid9);
                    
TutStep[playerid] = 9;
                    
ClearChatbox(playerid);
                    
// LSPD (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid1554.3381,-1675.5692,16.1953);
                    
SetPlayerPos(playerid1554.3381,-1675.5692,-10.0);
                    
SetPlayerCameraPos(playerid1514.7783,-1700.2913,36.7506);
                    
SetPlayerCameraLookAt(playerid1554.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Law Enforcement"str"Next""Cancel");
                }
                case 
9:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid9);
                    
ShowTutGUIFrame(playerid10);
                    
TutStep[playerid] = 10;
                    
ClearChatbox(playerid);
                    
// All Saints (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid,1175.5581,-1324.7922,18.1610);
                    
SetPlayerPos(playerid1188.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Los Angeles Fire Department - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
10:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid10);
                    
ShowTutGUIFrame(playerid11);
                    
TutStep[playerid] = 11;
                    
ClearChatbox(playerid);
                    
// San Andreas News (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid,643.6738,-1348.9811,17.7879);
                    
SetPlayerPos(playerid643.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(strwww.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Fox 11 News - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
11:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid11);
                    
ShowTutGUIFrame(playerid12);
                    
TutStep[playerid] = 12;
                    
ClearChatbox(playerid);
                    
// Government (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid,1478.4708,-1754.7579,16.7400);
                    
SetPlayerPos(playerid1478.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Government - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
12:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid12);
                    
ShowTutGUIFrame(playerid13);
                    
TutStep[playerid] = 13;
                    
ClearChatbox(playerid);
                    
// TR (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Restrictions - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
13:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid13);
                    
ShowTutGUIFrame(playerid14);
                    
TutStep[playerid] = 14;
                    
ClearChatbox(playerid);
                    
// Gang SaC Beach (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid,655.5394,-1867.2231,5.4609);
                    
SetPlayerPos(playerid655.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Gangs and Families - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
14:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid14);
                    
ShowTutGUIFrame(playerid15);
                    
TutStep[playerid] = 15;
                    
ClearChatbox(playerid);
                    
// 24/7 Store (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid,1315.6570,-898.7749,39.5781);
                    
SetPlayerPos(playerid1315.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - 24/7 Superstores - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
15:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid15);
                    
ShowTutGUIFrame(playerid16);
                    
TutStep[playerid] = 16;
                    
ClearChatbox(playerid);
                    
// Clothing Store (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
Streamer_UpdateEx(playerid,1457.1664,-1138.0111,26.6261);
                    
SetPlayerPos(playerid1457.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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Clothing Store  - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
16:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid16);
                    
ShowTutGUIFrame(playerid17);
                    
TutStep[playerid] = 17;
                    
ClearChatbox(playerid);
                    
// Car Dealership (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Vehicle Dealership  - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
17:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid17);
                    
ShowTutGUIFrame(playerid18);
                    
TutStep[playerid] = 18;
                    
ClearChatbox(playerid);
                    
// Los Santos (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Houses  - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
18:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid18);
                    
ShowTutGUIFrame(playerid19);
                    
TutStep[playerid] = 19;
                    
ClearChatbox(playerid);
                    
// VIP (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Traffic Laws  - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
19:
                {
                    new 
str[1024];
                    
HideTutGUIFrame(playerid19);
                    
ShowTutGUIFrame(playerid20);
                    
TutStep[playerid] = 20;
                    
ClearChatbox(playerid);
                    
// Unity Station (Camera)
                    
SetPlayerVirtualWorld(playerid0);
                    
SetPlayerInterior(playerid0);
                    
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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Basic Rules  - www.milzroleplayforums.boards.net"str"Next""Cancel");
                }
                case 
20:
                {
                    new 
str[1024];
                    
HideTutGUIBox(playerid);
                    
HideTutGUIFrame(playerid20);
                    
TutStep[playerid] = 0;
                    
ClearChatbox(playerid);
                    
PlayerInfo[playerid][pTut] = 1;
                    
gOoc[playerid] = 0gNews[playerid] = 0gFam[playerid] = 0;
                    
TogglePlayerControllable(playerid1);
                    
SetCamBack(playerid);
                    
DeletePVar(playerid"MedicBill");
                    
SetPlayerColor(playerid,TEAM_HIT_COLOR);
                    
SetPlayerInterior(playerid,0);
                    
SetPlayerPos(playerid1722.7611,-1915.6167,13.5647);
                    
SetPlayerFacingAngle(playerid359.4621);
                    
SetCameraBehindPlayer(playerid);
                    
SetPlayerVirtualWorld(playerid0);
                    
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(playeridDIALOG_SHOW_TUTORIALDIALOG_STYLE_MSGBOX"{33CCFF}Tutorial - Wrapping things up  - www.milzroleplayforums.boards.net"str"Ok""Cancel");
                }
            }
        }
    } 
Reply
#4

Show us OnPlayerSpawn and the server.log.
Reply
#5

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:15onfoot_rate 40  (intread-only)
[
20:52:15] *** Audio PluginStarted TCP server on port 7777
[20:52:15incar_rate 40  (intread-only)
[
20:52:15weapon_rate 40  (intread-only)
[
20:52:15] *** Audio_SetPackError opening audio.ini
[20:52:15]   <dmapDMap 0.3 // © 2008 DracoBlue // http://www.dracoblue.net
[20:52:15]   <dmapLoading ...
[
20:52:15]   <dmap> .. done!
[
20:53:04] [script3DTEXTDRAW LIMIT1024 (Static, non-streamed) | 3DTEXTDRAW COUNT1692
[20:53:04] [scriptPICKUP LIMIT4096 (Static, non-streamed) | PICKUP COUNT1559
[20:53:04] [scriptOBJECT LIMIT1000 (Static, non-streamed) | OBJECT COUNT15167
[20:53:04Number of vehicle models78
[20:53:04]  
[
20:53:04]  ========================================== 
[
20:53:04]  |                                        | 
[
20:53:04]  |  new version (v3.09.0684of 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]  | fixessee                             
[
20:53:04]  | http://forum.sa-mp.com/showthread.php? | 
[20:53:04]  | p=1425938 for more informationwith   
[
20:53:04]  | more topics and updates due over the   
[
20:53:04]  | next few weeks.  In briefAdded       
[
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 fixedversion checks;   | 
[
20:53:04]  | added y_bitmapy_areasy_races,      | 
[
20:53:04]  | y_zonenamesbetter 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:21filterscripts ""  (string)
[
20:53:21
[
20:53:21Server Plugins
[20:53:21] --------------
[
20:53:21]  Loading plugincrashdetect.dll
[20:53:21]   CrashDetect v4.12 is OK.
[
20:53:21]   Loaded.
[
20:53:21]  Loading pluginstreamer.dll
[20:53:21]   Loaded.
[
20:53:21]  Loading pluginaudio.dll
[20:53:21
*** 
Audio Plugin v0.5 R2 by Incognito loaded ***
[
20:53:21]   Loaded.
[
20:53:21]  Loading pluginsscanf.dll
[20:53:21
[
20:53:21]  ===============================
[
20:53:21]       sscanf plugin loaded.     
[
20:53:21]    (c2009 Alex "******" Cole
[20:53:21]    0.3d-R2 500 Players "dnee"
[20:53:21]  ===============================
[
20:53:21]   Loaded.
[
20:53:21]  Loading pluginwhirlpool.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:21Filterscripts
[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:21onfoot_rate 40  (intread-only)
[
20:53:21] *** Audio PluginStarted TCP server on port 7777
[20:53:21incar_rate 40  (intread-only)
[
20:53:21weapon_rate 40  (intread-only)
[
20:53:21] *** Audio_SetPackError opening audio.ini
[20:53:21]   <dmapDMap 0.3 // © 2008 DracoBlue // http://www.dracoblue.net
[20:53:21]   <dmapLoading ...
[
20:53:21]   <dmap> .. done!
[
20:54:38Incoming connection86.25.160.28:54875
[20:54:38] [joinJackie_Chan has joined the server (0:86.25.160.28)
[
20:54:52Jackie_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] [partJackie_Chan has left the server (0:0
Reply
#6

this is the onplayerspawn

PHP код:
public OnPlayerSpawn(playerid)
{
    if(!
gPlayerLogged{playerid})
    {
        
SendClientMessageEx(playeridCOLOR_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:XFloat:YFloat:Z;
        
GetVehiclePos(GetPVarInt(playerid"NGPassengerVeh"), XYZ);
        
SetPlayerPos(playerid, (X-2.557), (Y-3.049), Z);
        
SetPlayerWeaponsEx(playerid);
        
GivePlayerValidWeapon(playerid4660000);
        
SetPlayerSkin(playeridGetPVarInt(playerid"NGPassengerSkin"));
        
SetPlayerHealth(playeridGetPVarFloat(playerid"NGPassengerHP"));
        
SetPlayerArmour(playeridGetPVarFloat(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(playeridGetPVarFloat(playerid"air_Xpos"), GetPVarFloat(playerid"air_Ypos"), GetPVarFloat(playerid"air_Zpos"));
        
SetPlayerFacingAngle(playeridGetPVarFloat(playerid"air_Rpos"));
        
SetPlayerHealth(playeridGetPVarFloat(playerid"air_HP"));
        
SetPlayerArmour(playeridGetPVarFloat(playerid"air_Arm"));
        
SetPlayerWeaponsEx(playerid);
        
SetPlayerToTeamColor(playerid);
        
SetPlayerSkin(playeridPlayerInfo[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(playeridInsideShamal[playerid]);
        return 
SetPlayerInterior(playerid1);
    } 
Reply
#7

Well i already see the problem of the crash.You need to increase ackslimit.

EDIT: Download Server R5 from forums.
Reply
#8

can you tell me what to do brother?
Reply
#9

Update your server https://sampforum.blast.hk/showthread.php?tid=531302
Reply
#10

do i only drag the exe files? or i drag all the files from the link you gave me to the gamemode and replace?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)