Code:
new ent = find_ent_in_sphere( -1, vOrigin, 64.0 );
while( ent > 0 ){
new szModel[32];
entity_get_string( ent, EV_SZ_model, szModel, 31 );
if( containi( szModel, "sprites/kamecharge.spr" ) != -1 ){
entity_set_model( ent, "sprites/10xkamecharge.spr" );
}
}
1. Where was the vOrigin variable declared?
2. This will run an infinite loop, since once you get ent the value never changes. If it was 7, for example, then it would run the loop over and over and over again since it never drops below 0.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS