Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
error 029: invalid expression, assumed zero
warning 215: expression has no effect
error 001: expected token: ";", but found "return"
This is what is causing it:
new healcost;
healcost = 100;
Why does this happen?
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
The last error has nothing to do with the two lines you just posted. Can you show us the rest of that code?
Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
healcost = 100;
if(GetPlayerMoney(otherplayer) < healcost)) return SendClientMessage(playerid, COLOR_RED, "he does not have enough money!");
Its all on the same line. (all the errors/warnings), its something to do with healcost =
Posts: 2,628
Threads: 32
Joined: Apr 2007
Reputation:
0
You have one extra ')' - remove it.
Posts: 185
Threads: 53
Joined: Feb 2011
Reputation:
0
One of the times that I feel so stupid lol. Thanks Larz.