2 warnings on my makeleader command
#1

Hello.

I've recently found 2 warnings on my /makeleader command!, anyone know the problem here?

warning 215: expression has no effect
warning 215: expression has no effect

these are the two warnings.

THe two lines are below. Both in same order.
pawn Код:
playerVariables[playerid][Faction] == factionid;
playerVariables[playerid][Rank] == 6;
Anyone know the solution?
Reply
#2

Quote:
Originally Posted by Oscii
Посмотреть сообщение
Hello.

I've recently found 2 warnings on my /makeleader command!, anyone know the problem here?

warning 215: expression has no effect
warning 215: expression has no effect

these are the two warnings.

THe two lines are below. Both in same order.
pawn Код:
playerVariables[playerid][Faction] == factionid;
playerVariables[playerid][Rank] == 6;
Anyone know the solution?
== and = are some different operator

You use == by if statements
and = to set one value to an other value.

PHP код:
playerVariables[playerid][Faction] = factionid;
playerVariables[playerid][Rank] = 6
Reply
#3

As the above comment states, "==" checks something if it is equal to or not to set you may use "=" instead.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)