Tremulous Forum

Mods => Modding Center => Topic started by: DraZiLoX on January 27, 2010, 03:36:21 PM

Title: !invisible problem :< [SOLVED]
Post by: DraZiLoX on January 27, 2010, 03:36:21 PM
I add invisible command to my QVM.

Then:

make

and then :( :

Quote
Q3LCC src/game/g_client.c
Q3LCC src/game/g_cmds.c
src/game/g_cmds.c:4743: type error in argument 2 to `G_admin_permission'; found `pointer to char' expected `char'
src/game/g_cmds.c:4747: type error in argument 2 to `G_admin_permission'; found `pointer to char' expected `char'
make[2]: *** [build/release-linux-x86/base/game/g_cmds.asm] Error 1
make[2]: Leaving directory `/home/user/WonderQVM-3.1'
make[1]: *** [targets] Error 2
make[1]: Leaving directory `/home/user/WonderQVM-3.1'
make: *** [release] Error 2

oh no!

g_cmds.c lines 4739 - 4755:
     if( teamonly && !OnSameTeam( ent, tmpent ) )
       continue;
     
     // Ignore sending to invisible players
     if( tmpent->client->sess.invisible == qtrue && !G_admin_permission( ent, "I" ) )
       continue;

     // Ignore sending to non-invisible-capable players while invisible
     if( ent->client->sess.invisible == qtrue && !G_admin_permission( tmpent, "I" ) )
       continue;

     if( BG_ClientListTest( &tmpent->client->sess.ignoreList,
       ent-g_entities ) )
     {
       ignoreids[ ignored++ ] = pids[ i ];
       continue;
     }


Then i write again make

and :-o

Q3LCC src/ui/ui_gameinfo.c
Q3ASM build/release-linux-x86/base/vm/ui.qvm
make[2]: Leaving directory `/home/user/WonderQVM-3.1'
make[1]: Leaving directory `/home/user/WonderQVM-3.1'


and when i try QVM, it works.

What is problem? I dont want QVM, that i compile year later and THEN it doesnt work.
Title: Re: !invisible problem :<
Post by: David on January 27, 2010, 03:55:16 PM
"I" should be 'I'  (Single quotes)
Title: Re: !invisible problem :<
Post by: DraZiLoX on January 27, 2010, 03:56:35 PM
:-o

Thanks, i'll try.

EDIT: Yep thats it, thanks David !