problem... 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)
+--- Thread: problem... inputtext (
/showthread.php?tid=513728)
problem... inputtext -
Lirbo - 17.05.2014
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")
Re: problem... inputtext -
Aerotactics - 17.05.2014
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.
Re: problem... inputtext -
Lirbo - 17.05.2014
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?
Re: problem... inputtext -
Denying - 17.05.2014
Try storing the value of the money in a variable instead of how you do it.
strval(inputtext) should be working, to be honest.
Re: problem... inputtext -
Lirbo - 17.05.2014
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...