AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Possibly unintended assignment (https://forums.alliedmods.net/showthread.php?t=332645)

nG_getwreck 05-25-2021 00:23

Possibly unintended assignment
 
is there something wrong on this line?
PHP Code:


static victim
victim 
= -1

while(victim engfunc(EngFunc_FindEntityInSpherevictimoriginFFIRE_RADIUS != 0)) 


fysiks 05-25-2021 00:37

Re: Possibly unintended assignment
 
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.


All times are GMT -4. The time now is 12:20.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.