Raised This Month: $120 Target: $400
 30% 

Possibly unintended assignment


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
nG_getwreck
Senior Member
Join Date: Oct 2020
Location: Philippines from South K
Old 05-25-2021 , 01:23   Possibly unintended assignment
Reply With Quote #1

is there something wrong on this line?
PHP Code:

static victim
victim 
= -1

while(victim engfunc(EngFunc_FindEntityInSpherevictimoriginFFIRE_RADIUS != 0)) 
__________________

Last edited by nG_getwreck; 05-25-2021 at 01:28.
nG_getwreck is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-25-2021 , 01:37   Re: Possibly unintended assignment
Reply With Quote #2

The compiler typically expects a comparison in the while loop conditional so it thinks you made a typo by using "=" instead of "==". If you actually are intending do an assignment, you can wrap the assignment in parentheses.
__________________
fysiks is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 11:22.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode