 |
|
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
|

08-07-2011
, 21:36
Re: classname
|
#6
|
Quote:
Originally Posted by usaexelent
Why doesn't this work?
new classname[32]
pev( id, pev_classname, classname, charmax( classname ) )
new ent = -1
client_print(id, print_chat,"[debug] hit=%d; start=%d,%d,%d; end=%d,%d,%d; class=%i", hit, iStart[0], iStart[1], iStart[2], iEnd[0], iEnd[1], iEnd[2],classname[32]) // remove on final version
while(ent = find_ent_in_sphere( id, iEnd, 200.0 ))
{
if(is_valid_ent(ent))
dllfunc( DLLFunc_Use, ent, 0 );
}
|
It doesn't compile.
Code:
charsmax()
client_print(0, print_chat, "%s", classname)
__________________
Last edited by fysiks; 08-07-2011 at 21:38.
|
|
|
|