SA-MP Forums Archive
inputtext - 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: inputtext (/showthread.php?tid=217749)



inputtext - Typhome - 28.01.2011

Код:
if(response) {
			if(PlayerInfo[playerid][pCash] >= inputtext) {
error 033: array must be indexed (variable "inputtext")


Re: inputtext - Gabe - 28.01.2011

Use this:

Quote:

if(IsNumeric(inputtext) )
{
if(PlayerInfo[playerid][pCash] >= strval(inputtext)) {




Re: inputtext - Ash. - 28.01.2011

Im guessing your "input" is a integer.

Use;
pawn Код:
if(response)
{
     if(PlayerInfo[playerid][pCash] >= strval(inputtext))
     {