In that example, it's actually more correct to do it the ANSI way, but I guess that's up to interpretation.
What error did it give you? Was "i" already defined in the function? I've never had the problem of syntax errors when compiling my Linux version. I'm not sure what compiler version I'm using, but it has no problem handling all the crazy stuff I do. Tnx & Rgds... David "Nighthawk" Flor ( [EMAIL PROTECTED] ) Lead Programmer, "The Opera" - http://opera.redeemedsoft.com/ "When Alexander saw the breadth of his domain he wept for there were no more worlds to conquer." -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Dave R. Meyers Sent: Wednesday, November 14, 2001 7:17 PM To: [EMAIL PROTECTED] Subject: [hlcoders] syntax and ansi compliance I think this might be a silly quiestion, but I am curious. When I ported my mod over to Linux, I had to change a bunch of counter loops: for ( int i = 1; i <= gpGlobals->maxClients; i++ ) to this style int i; for ( i = 1; i <= gpGlobals->maxClients; i++ ) For ansi compliance. The question is this, why did not all of the loops have to change? and would there be a problem with the value ever being passed to the wrong counter? I mean I know it has something to do with scope, but this just seems odd that not all loops gave errors?? Dave R. Meyers aka Starbreaker www.starbraker.com Lead Coder Oz Deathmatch _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders