22.08.2010, 17:57
First off 'amount ' can only hold one value so
second 'if' should look like this,
If amount isn't global the first check amount >= GetPlayerMoney(playerid) would be pointless as we know it holds the players money in this example.
pawn Код:
new amount = GetPlayerMoney(playerid);//is all u can do wth an int
pawn Код:
if(amount >= GetPlayerMoney(playerid) || amount >= GetPlayerWeedAmount(playerid))//or simalar