Mismatch with this code
#1

Whats the issue in the REGISTERTUT section

error 029: invalid expression, assumed zero
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
warning 215: expression has no effect
error 001: expected token: ";", but found ")"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line


Код:
	if(RegistrationStep[playerid] != 0)
	{
	    if(dialogid == REGISTERSEX)
	    {
		    if(response)
		    {
		        new stringdiag[410];
				for(new x=18;x<99;x++)
				{
					format(stringdiag, sizeof(stringdiag), "%s%d\n", stringdiag, x);
				}
			    if(listitem == 0)
			    {
					PlayerInfo[playerid][pSex] = 1;
					SendClientMessageEx(playerid, COLOR_LIGHTRED, "Alright, so you're a male.");
					ShowPlayerDialog(playerid, REGISTERAGE, DIALOG_STYLE_LIST, "{33CCFF}What is your characters age?", stringdiag, "Submit", "");
					RegistrationStep[playerid] = 2;
				}
				else
				{
					PlayerInfo[playerid][pSex] = 2;
					SendClientMessageEx(playerid, COLOR_LIGHTRED, "Alright, so you're a female.");
					ShowPlayerDialog(playerid, REGISTERAGE, DIALOG_STYLE_LIST, "{33CCFF}What is your characters age?", stringdiag, "Submit", "");
					RegistrationStep[playerid] = 2;
				}
			}
			else
			{
			    ShowPlayerDialog(playerid, REGISTERSEX, DIALOG_STYLE_LIST, "{33CCFF}Is your character male or female?", "Male\nFemale", "Submit", "");
			}
		}
		else if(dialogid == REGISTERAGE)
	    {
		    if(response)
		    {
				new stringdiag2[410];
				for(new x=1;x<11;x++)
				{
					format(stringdiag2, sizeof(stringdiag2), "%s%d\n", stringdiag2, x);
				}
	      		PlayerInfo[playerid][pAge] = listitem+18;
				PlayerInfo[playerid][pOrigin] = 0;
				format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
				SendClientMessageEx(playerid, COLOR_LIGHTRED, string);
				ShowPlayerDialog(playerid, REGISTERTUT, DIALOG_STYLE_LIST, "{33CCFF}Thanks for registering at Intervision, you are now proceeding to the next part in registration!", stringdiag2, "Submit", "");
				RegistrationStep[playerid] = 3;
		    }
		}
 		else if(dialogid == REGISTERTUT)

	    {
		    if(response)
		    {
					SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Thanks for registering at Intervision, you are now proceeding to the next part in registration!");
					
					RegistrationStep[playerid] = 0;

					hidePlayerDialog(playerid);

					ShowPlayerDialog(playerid, SHOWTUTORIAL, DIALOG_STYLE_LIST, "{33CCFF}you are now proceeding to Tutorial!", "Proceed", "");
			}
			else
			{
				ShowPlayerDialog(playerid, REGISTERTUT, DIALOG_STYLE_LIST, "{33CCFF}Thanks for registering at Intervision, you are now proceeding to the next part in registration!", "Submit", "");
			}
		}
		return 1;
	}
Reply
#2

Exactly what ****** has stated, we can't exactly assist you if you don't supply us with the line numbers that correspond to the error messages.
Reply
#3

Its the ShowPlayerDialog(playerid, SHOWTUTORIAL, DIALOG_STYLE_LIST, "{33CCFF}you are now proceeding to Tutorial!", "Proceed", ""); what errors
Reply
#4

I'm not sure if this will help at all, but it's worth a try.
pawn Код:
ShowPlayerDialog(playerid, SHOWTUTORIAL, DIALOG_STYLE_LIST, "Tutorial", "{33CCFF}you are now proceeding to Tutorial!", "Proceed", "");
Reply
#5

Did not work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)