Errors when doing healcost = 100;
#1

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?
Reply
#2

The last error has nothing to do with the two lines you just posted. Can you show us the rest of that code?
Reply
#3

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 =
Reply
#4

You have one extra ')' - remove it.
Reply
#5

One of the times that I feel so stupid lol. Thanks Larz.
Reply
#6

Hehe, happens the best.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)