problem... inputtext
#1

pawn Код:
if(strval(inputtext) > DOF2_GetInt(pFile(playerid),"Money")) return SendClientMessage(playerid,COLOR_DENIED,"[ERROR] {FF6969}You don't have this ammount of money");
Error 1: error 033: array must be indexed (variable "inputtext")
Error 2: error 033: array must be indexed (variable "inputtext")
Reply
#2

inputtext is a string, in which you need to use strcmp.

If you are trying to ask a player for a numerical input, one way you could do it is with sscanf. That would be the easiest in my opinion.
Reply
#3

Quote:
Originally Posted by Aerotactics
Посмотреть сообщение
inputtext is a string, in which you need to use strcmp.

If you are trying to ask a player for a numerical input, one way you could do it is with sscanf. That would be the easiest in my opinion.
example?
Reply
#4

Try storing the value of the money in a variable instead of how you do it.
strval(inputtext) should be working, to be honest.
Reply
#5

Quote:
Originally Posted by Denying
Посмотреть сообщение
Try storing the value of the money in a variable instead of how you do it.
strval(inputtext) should be working, to be honest.
not working... i need example...
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)