SA-MP Forums Archive
2 Error, please help :) - 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: 2 Error, please help :) (/showthread.php?tid=397270)



2 Error, please help :) - RenovanZ - 04.12.2012

Hi, I added new command for my script, but it's got 2 error.
Help, The error is
pawn Код:
C:\Users\ariefkyano\Desktop\Test RP\gamemodes\Respect4.pwn(78509) : error 033: array must be indexed (variable "inputtext")
C:\Users\ariefkyano\Desktop\Test RP\gamemodes\Respect4.pwn(78510) : error 033: array must be indexed (variable "inputtext")
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
And The Line is:
pawn Код:
BusinessInfo[bizid][bProducts] += inputtext; <= Line 78509
            PlayerInfo[playerid][pCash] -= inputtext*20; <= Line 78510



Re: 2 Error, please help :) - JaKe Elite - 04.12.2012

pawn Код:
strval(inputtext);
for the line 78509

and

pawn Код:
strval(inputtext)*20;
for Line 78510


Re: 2 Error, please help :) - RenovanZ - 04.12.2012

Quote:
Originally Posted by Romel
Посмотреть сообщение
pawn Код:
strval(inputtext);
for the line 78509

and

pawn Код:
strval(inputtext)*20;
for Line 78510
Thanks, +Rep for you