11.03.2012, 06:19
Quote:
hi i'm current making my script.
the problem is i get some error at this part pawn Код:
Код:
error 033: array must be indexed (variable "inputtext") error 035: argument type mismatch (argument 3) |
inputtext is a string and you are trying to save string with dini_setint, you must first convert string to integar with strval()... This means u r checking if int is greater than string : hope u understand .
Try this
pawn Код:
new money = strval(inputtext);//convert string to int
if(GetPlayerMoney(playerid) < money) return SendClientMessage(playerid, -1, "You do not have enough cash to withdraw that cash!");
dini_IntSet(file, "WithDraw", money);