08.06.2010, 15:07
Oh yea I got one problem left I hope one of you can help me solve:
I'm having error at the:
Errors is following:
pawn Код:
if(IsNumeric(inputtext))
{
new moneycheck[128];
format(moneycheck,128,"%s",inputtext);
if(GetPlayerMoney(playerid) < moneycheck)
{
SendClientMessage(playerid, 0xFFFFFF, "You don't have enough cash.");
}
else
{
GivePlayerMoney(playerid, -moneycheck);
new string2[128];
format(string,300,"UPDATE "SQL_FACTION" SET `FactionBank`=FactionBank + %d WHERE `ID`='2'",strval(inputtext));
mysql_query(string);
format(string,128,"You have just deposit %s into HR313SR Faction Bank",inputtext);
SendClientMessage(playerid,COLOR_YELLOW,string2);
}
}
pawn Код:
if(GetPlayerMoney(playerid) < moneycheck)
pawn Код:
GivePlayerMoney(playerid, -moneycheck);
Код:
error 035: argument type mismatch (argument 2) error 033: array must be indexed (variable "moneycheck")