Please help
#1

Код:
case CODE:
		{
		if(!response)
  		{
      		//Cancel
			return 1;
		}
		if(!strlen(inputtext))
		{
  			// Didn't insert anything
			return 1;
		}
		new
			CODE = strlen(inputtext),
			MYCODE = strlen(pInfo[playerid][pCode])
		;
		if(CODE != MYCODE)
		{
   			SendClientMessage(playerid, -1, "Wrong code");
		}
		else
		{
			SendClientMessage(playerid, -1, "Right code");
			}
		}
Even If I isert the right code, it says wrong code, Whats wrong.
Reply
#2

Well, what's the value of the "pInfo[playerid][pCode]" variable and what are you writing into the text box?
Reply
#3

Im writing 123 into text box, because my CODE is 123, I did a command, /mycode, and it showed pinfo[playerid][pcode], so it is 123.
Reply
#4

Help please !
Reply
#5

Quote:
Originally Posted by NewbBeginner
Посмотреть сообщение
pawn Код:
case CODE:
new CODE = strlen(inputtext),
Rename that variable to something else.
Reply
#6

And btw use [pawn] tags instead [code] ones... It help when we look at the script
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)