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



inputtext error - kLx - 20.12.2009

Hi!

I'm doing this:
Код:
				if (inputtext > PlayerInfo[playerid][pAccount] || inputtext < 1)
				{
					SendClientMessage(playerid, COLOR_GRAD2, "  Tu neturi tiek daug !");
					return 1;
				}
And getting those errors:
Код:
S:\SA-MP Files\VRP\gamemodes\vlrp.pwn(4740) : error 033: array must be indexed (variable "inputtext")
S:\SA-MP Files\VRP\gamemodes\vlrp.pwn(4745) : error 035: argument type mismatch (argument 2)
S:\SA-MP Files\VRP\gamemodes\vlrp.pwn(4746) : error 033: array must be indexed (variable "inputtext")
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Wuz da problem?
Thanks


Re: inputtext error - LarzI - 20.12.2009

Change
pawn Код:
if (inputtext > PlayerInfo[playerid][pAccount] || inputtext < 1)
to
pawn Код:
if (strval(inputtext) > PlayerInfo[playerid][pAccount] || strval(inputtext) < 1)



Re: inputtext error - kLx - 20.12.2009

tnx