SA-MP Forums Archive
I need help - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need help (/showthread.php?tid=154778)



I need help - Mystique - 15.06.2010

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



Re: I need help - Lajko1 - 15.06.2010

so tell the lines and on what line is error


Re: I need help - Mystique - 15.06.2010

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


Re: I need help - Anthony_Brassi - 15.06.2010

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

i think that'll work


Re: I need help - Mystique - 15.06.2010

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"



Re: I need help - Babul - 15.06.2010

"strval", not "Strval". lowercase


Re: I need help - Mystique - 15.06.2010

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