SA-MP Forums Archive
Register Problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Register Problem (/showthread.php?tid=513468)



Register Problem - Yander - 16.05.2014

When I register on my server it will ask about the 'Sex' or 'Gender' when I choose either 'Male or Female' it crashes and saying "You're banned from the Server". Help me.


Re: Register Problem - rockhopper - 16.05.2014

Show the code ...


Re: Register Problem - Yander - 16.05.2014

Код:
if(dialogid == SEXMENU)
	{
		if(response)
		{
			if(listitem == 0) // Male
			{
        	    if(RegistrationStep[playerid] == 1)
         	    {
				 	PlayerInfo[playerid][pSex] = 1;
         	   		RegistrationStep[playerid] = 2;
         	   		ShowMainMenuGUI(playerid);
         	   		ShowPlayerDialog(playerid, AGEMENU, DIALOG_STYLE_LIST, "So you're a Male. Select Your In Character Age","18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55\n56\n57\n58\n59\n60 ", "Select", "Cancel");
        		    return 0;
 			    }
			}
			if(listitem == 1) // Female
			{
        	    if(RegistrationStep[playerid] == 1)
         	    {

        		    PlayerInfo[playerid][pSex] = 2;
   		    	    RegistrationStep[playerid] = 2;
   		    	    ShowMainMenuGUI(playerid);
   		    	    ShowPlayerDialog(playerid, AGEMENU, DIALOG_STYLE_LIST, "So you're a Female. Select Your In Character Age","18\n19\n20\n21\n22\n23\n24\n25\n26\n27\n28\n29\n30\n31\n32\n33\n34\n35\n36\n37\n38\n39\n40\n41\n42\n43\n44\n45\n46\n47\n48\n49\n50\n51\n52\n53\n54\n55\n56\n57\n58\n59\n60 ", "Select", "Cancel");
			        return 0;
 			    }
			}
		}
		return 1;
	}



Re: Register Problem - biker122 - 16.05.2014

Why are you returning 0? o_O
Delete those "return 0;"'s and you're done.


Re : Register Problem - Ramoboss - 16.05.2014

remove your return 0;

it's blocking the registration