Raised This Month: $12 Target: $400
 3% 

Warning 211: 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 02-18-2021 , 21:41   Warning 211: possibly unintended assignment
Reply With Quote #1

Hello, I have problem in compiling this plugin.

Error:
PHP Code:
warning 211possibly unintended assignment 
Code part:
PHP Code:
new index
    g_iZombieClassID 
zp_class_zombie_register(zombieclass6_namezombieclass6_infozombieclass6_healthzombieclass6_speedzombieclass6_gravity)
    
zp_class_zombie_register_kb(g_iZombieClassIDzombieclass6_knockback)
    if (
index 0index sizeof zombieclass6_modelindex++)
    {
        
zp_class_zombie_register_model(g_iZombieClassIDzombieclass6_model[index])
    }
    if (
index 0index sizeof zombieclass6_clawindex++)
    {
        
zp_class_zombie_register_claw(g_iZombieClassIDzombieclass6_claw[index])
    } 
__________________
nG_getwreck is offline
lexzor
Veteran Member
Join Date: Nov 2020
Old 02-18-2021 , 21:43   Re: Warning 211: possibly unintended assignment
Reply With Quote #2

PHP Code:
new index

g_iZombieClassID 
zp_class_zombie_register(zombieclass6_namezombieclass6_infozombieclass6_healthzombieclass6_speedzombieclass6_gravity)
zp_class_zombie_register_kb(g_iZombieClassIDzombieclass6_knockback)
    if (
index 0index sizeof zombieclass6_modelindex++)
    {
        
zp_class_zombie_register_model(g_iZombieClassIDzombieclass6_model[index])
    }
    if (
index 0index sizeof zombieclass6_clawindex++)
    {
        
zp_class_zombie_register_claw(g_iZombieClassIDzombieclass6_claw[index])
    } 
try this

Last edited by lexzor; 02-18-2021 at 21:43.
lexzor is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 02-18-2021 , 21:51   Re: Warning 211: possibly unintended assignment
Reply With Quote #3

You're using "if" instead of "for".
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
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 09:39.


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