inputtext error
#1

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
Reply
#2

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

tnx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)