invalid expression
#7

Quote:
Originally Posted by _❼_
Quote:
Originally Posted by Carlton
pawn Код:
else {
    SendFormattedMessage(playerid, RED,".::[ERROR]: You Do Not Have Enough Cash TO Refuel Your Vehicle!.", properCash);
    }
You can't have a else statement without a if statement
Lol yes you can

Probably what is giving you that error, is this:

pawn Код:
new properCash = 0 - randomCash;
No you can't. Also
pawn Код:
new properCash = 0 - randomCash;
is not the problem, that's a perfect math code. If I did this:

pawn Код:
public OnPlayerSpawn(playerid) {
   GivePlayerMoney(playerid, 10101010);
   else {
     print("No")
   }
   return 1;
}
It wouldn't work because I have no if statement.
Reply


Messages In This Thread
invalid expression - by Kar - 19.06.2010, 14:39
Re: invalid expression - by Carlton - 19.06.2010, 14:41
Re: invalid expression - by Kar - 19.06.2010, 14:43
Re: invalid expression - by Carlton - 19.06.2010, 14:44
Re: invalid expression - by Kar - 19.06.2010, 14:53
Re: invalid expression - by dcmd_crash - 19.06.2010, 15:01
Re: invalid expression - by Carlton - 19.06.2010, 15:06
Re: invalid expression - by Kar - 19.06.2010, 15:08
Re: invalid expression - by Carlton - 19.06.2010, 15:08
Re: invalid expression - by dcmd_crash - 19.06.2010, 15:10

Forum Jump:


Users browsing this thread: 1 Guest(s)