I need help
#1

I need help with this, can anyone solve it for me, please?




Код:
if(dialogid == 2)
  {
		if(response == 1)
		{
		  new str[128];
		  format(str, sizeof(str), "You have succesfully set your age to %d.", inputtext);
		  SendClientMessage(playerid, COLOR_LIME, str);


		  PlayerInfo[playerid][Age] = inputtext;

		  dUserSetINT(PlayerName2(playerid)).("Age", PlayerInfo[playerid][Age]);
		  
		  }
	}
Код:
error 006: must be assigned to an array
Reply
#2

so tell the lines and on what line is error
Reply
#3

Код:
 PlayerInfo[playerid][Age] = inputtext;
There's the error.
Reply
#4

Quote:
Originally Posted by Mystique
Код:
 PlayerInfo[playerid][Age] = inputtext;
There's the error.
PlayerInfo[playerid][Age] = Strval(inputtext);

i think that'll work
Reply
#5

Quote:
Originally Posted by Anthony_Brassi
Quote:
Originally Posted by Mystique
Код:
 PlayerInfo[playerid][Age] = inputtext;
There's the error.
PlayerInfo[playerid][Age] = Strval(inputtext);

i think that'll work
Код:
error 017: undefined symbol "Strval"
Reply
#6

"strval", not "Strval". lowercase
Reply
#7

Quote:
Originally Posted by Babul
"strval", not "Strval". lowercase
Thanks man.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)