array must be indexed.. :I
#1

yes it is under callback ondialog response where inputtext indexing makes it impossible to use and all other dialogs is working fine but this one asks for indexing


Код:
if(dialogid==11)
	{
	  if(response)
	  {
	    if(JackpotLife[playerid]==0)
	    {
	    	SendClientMessage(playerid,GRAY,"You lost, play again?");
	    	jackpotdiff[playerid]=0;
	    	return 1;
			}
	    	if(inputtext==Jackpot[playerid])
    	{
	      	GameTextForPlayer(playerid, "YOU WON!!!", 2000, 6);
	    	  if(jackpotdiff[playerid]==15)return GivePlayerMoney(playerid,2000);
				else if(jackpotdiff[playerid]==30) return GivePlayerMoney(playerid,5000);
				else if(jackpotdiff[playerid]==50) return GivePlayerMoney(playerid,10000);
	    	}
			else if(Jackpot[playerid]< inputtext)
			{
			  ShowPlayerDialog(playerid, 11, DIALOG_STYLE_INPUT,"Type your number:","Too BIG ","Type", "GiveUp");
				JackpotLife[playerid]=JackpotLife[playerid]-1;
				SendClientMessage(playerid,GRAY,"Too BIG!");
			}
			else if(Jackpot[playerid]> inputtext)
			{
				ShowPlayerDialog(playerid, 11, DIALOG_STYLE_INPUT,"Type your number:","Too SMALL ","Type", "GiveUp");
				JackpotLife[playerid]=JackpotLife[playerid]-1;
				SendClientMessage(playerid,GRAY,"Too SMALL!");
			}
		}
	}
Reply
#2

Use strval(inputtext)
Reply
#3

thanks it worked
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)