[DiscordArchive] where did you notice that ?
[DiscordArchive] where did you notice that ?
Archived author: cyberpro98 • Posted: 2024-02-08T23:28:16.467000+00:00
Original source
where did you notice that ?
Archived author: cyberpro98 • Posted: 2024-02-08T23:28:46.040000+00:00
Original source
o ye i got it now
Archived author: adm • Posted: 2024-02-09T00:19:15.727000+00:00
Original source
What's wrong with this line, and why it says that it's missing a bracket when trying to compile it:
```php
if ((maxNumberOfPlayers <= 5) && (player->getClass() == CLASS_PRIEST || player->getClass() == CLASS_MAGE || player->getClass() == CLASS_WARLOCK))
```
```php
:1106:49: fatal error: expected ')'
if ((maxNumberOfPlayers <= 5) && (player->getClass() == CLASS_PRIEST || player->getClass() == CLASS_MAGE || player->getClass() == CLASS_WARLOCK))
```
Archived author: Rymercyble • Posted: 2024-02-09T00:26:29.040000+00:00
Original source
it could be before or after...IDE should highlight it
Archived author: adm • Posted: 2024-02-09T00:27:43.443000+00:00
Original source
Yes, it shows arrows before and after:
```php
(player
```
but doesn't make sense...
Archived author: Rymercyble • Posted: 2024-02-09T00:28:38.908000+00:00
Original source
send whole code block i guess
Archived author: adm • Posted: 2024-02-09T00:30:08.068000+00:00
Original source
```php
if (instanceMap->IsHeroic())
{
if ((maxNumberOfPlayers <= 5) && (player->getClass() == CLASS_PRIEST || player->getClass() == CLASS_MAGE || player->getClass() == CLASS_WARLOCK))
{
inflectionValue *= InflectionPointHeroicCloth;
curveFloor = InflectionPointHeroicCurveFloorCloth;
curveCeiling = InflectionPointHeroicCurveCeilingCloth;
}
```
Archived author: mynameismeat • Posted: 2024-02-09T00:30:52.587000+00:00
Original source
just in general I'd recommend wrapping each of the `player->getClass() == CLASS_FOO` in parens
Archived author: adm • Posted: 2024-02-09T00:31:29.896000+00:00
Original source
I tried that too, same error
Archived author: Rymercyble • Posted: 2024-02-09T00:32:13.639000+00:00
Original source
i dont see any error there so it must be probably above