Thread
:
Sensing grenades in-flight
View Single Post
Re: Sensing grenades in-flight
(#
7
)
@$3.1415rin
Council Member, Author of JoeBOT
Status:
Offline
Posts: 1,381
Join Date: Nov 2003
Location: Germany
Re: Sensing grenades in-flight -
15-04-2004
strcmp returns zero if the strings are equal. so
Code:
if (strcmp (model_name, "models/w_hegrenade.mdl") == 0) return 1; // He grenade
is right. ( use ! instead of == 0 and you save at least 2 chars
)
Last edited by @$3.1415rin; 15-04-2004 at
15:07
..
@$3.1415rin
View Public Profile
Send a private message to @$3.1415rin
Visit @$3.1415rin's homepage!
Find More Posts by @$3.1415rin