Author Topic: some error  (Read 4453 times)

DarkEnix

  • Posts: 67
  • Turrets: +10/-22
some error
« on: March 11, 2008, 01:48:20 am »
what dose it mean by

operands of = have illegal types `pointer to struct gentity_s' and `int'

kevlarman

  • Posts: 2737
  • Turrets: +291/-295
Re: some error
« Reply #1 on: March 11, 2008, 01:58:29 am »
it means you can't assign an int to a gentity_t*
Quote from: Asvarox link=topic=8622.msg169333#msg169333
Ok let's plan it out. Asva, you are nub, go sit on rets, I will build, you two go feed like hell, you go pwn their asses, and everyone else camp in the hallway, roger?
the dretch bites.
-----
|..d| #
|.@.-##
-----

DarkEnix

  • Posts: 67
  • Turrets: +10/-22
Re: some error
« Reply #2 on: March 11, 2008, 05:08:32 am »
an int? , i cant find any int in my cmd though , might it be at other places?

DarkEnix

  • Posts: 67
  • Turrets: +10/-22
Re: some error
« Reply #3 on: March 11, 2008, 05:21:31 am »
ok , u see

my error was in src/game/g_weapon.c:394
under line 394 was

Code: [Select]
m = fire_grounddrift( ent, muzzle, forward );
before that was

Code: [Select]
void grounddriftfire( gentity_t *ent )
{
  gentity_t *m;

  m = fire_grounddrift( ent, muzzle, forward );

Thomsen

  • Posts: 55
  • Turrets: +7/-1
Re: some error
« Reply #4 on: March 25, 2008, 06:26:00 pm »
Make fire_grounddrift return an gentity_t or just remove the
Code: [Select]
gentity_t *m;

  m =

part