Help 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: Help Inputtext (
/showthread.php?tid=451008)
Help Inputtext -
xganyx - 15.07.2013
Hello again pls help me with this:
pawn Код:
case DIALOG_CASH:
{
if(response)
{
switch(listitem)
{
case 0:
{
if(strcmp(inputtext, > 1000)
{
i have that and the error is
Код:
C:\Users\Admin\Desktop\FCNPC\FCNPC\filterscripts\MoneyDrop.pwn(66) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\FCNPC\FCNPC\filterscripts\MoneyDrop.pwn(66) : warning 215: expression has no effect
C:\Users\Admin\Desktop\FCNPC\FCNPC\filterscripts\MoneyDrop.pwn(66) : error 001: expected token: ";", but found ")"
C:\Users\Admin\Desktop\FCNPC\FCNPC\filterscripts\MoneyDrop.pwn(66) : error 029: invalid expression, assumed zero
C:\Users\Admin\Desktop\FCNPC\FCNPC\filterscripts\MoneyDrop.pwn(66) : fatal error 107: too many error messages on one line
the line error is if(strcmp(inputtext, > 1000)
please help me
Re: Help Inputtext -
IstuntmanI - 15.07.2013
Change
pawn Код:
if(strcmp(inputtext, > 1000)
to
pawn Код:
if(strval(inputtext) > 1000)
you should also add a check if it is numeric.