Jman3ooo Posted September 7, 2002 Share Posted September 7, 2002 This is from g_main and everytime I try to compile I get theese errors: 2275 C:\Program Files\LucasArts\Star Wars JK II Jedi Outcast\GameData\code\game\g_main.c subscripted value is neither array nor pointer 2276 C:\Program Files\LucasArts\Star Wars JK II Jedi Outcast\GameData\code\game\g_main.c [Warning] passing arg 1 of `VectorLength' makes pointer from integer without a cast void G_RunFrame( int levelTime ) { int i; gentity_t *ent; int msec; int start, end; int count; int radius; int a; long distcheck; float animSpeedScale = 1; for ( count = 0 ; count < MAX_GENTITIES ; count++ ) { if (g_entities[count].client && g_entities[count].client->ps.clientNum != ent->client->ps.clientNum) { VectorSubtract( ent->client->ps.origin, g_entities[count].client->ps.origin[1], a ); //2275 if (VectorLength(a) < 1000) //2276 { animSpeedScale = .25; break; } else { animSpeedScale = 1; } } } Link to comment Share on other sites More sharing options...
Jaii der Herr Posted September 7, 2002 Share Posted September 7, 2002 VectorSubtract( ent->client->ps.origin, g_entities[count].client->ps.origin[1], a ); => VectorSubtract( ent->client->ps.origin, g_entities[count].client->ps.origin, a ); int a; => vec3_t a; Link to comment Share on other sites More sharing options...
Jman3ooo Posted September 7, 2002 Author Share Posted September 7, 2002 Wow thx a million Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.