SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 21/05/2019, 06:26 PM   #1
StRaphael
Big Clucker
 
Join Date: Nov 2016
Posts: 124
Reputation: 0
Default warning 211: possibly unintended assignment

Hello there, I get this warning on this script:
PHP Code:
for(new ii=sizeof(PlayerInfo); i++) PlayerInfo[playerid][pInfo:i] = 0// warning 211: possibly unintended assignment 
Here is PlayerInfo variable defined:
PHP Code:
enum pInfo{
    
pLogged,
    
pPassword[256]
};
new 
PlayerInfo[MAX_PLAYERS][pInfo]; 
How can I fix this warning?
Thank you in advance!
StRaphael is offline   Reply With Quote
Old 21/05/2019, 06:28 PM   #2
cSharp
Big Clucker
 
Join Date: Oct 2018
Posts: 64
Reputation: 13
Default Re: warning 211: possibly unintended assignment

i=sizeof(PlayerInfo);

>

i == sizeof(PlayerInfo);
__________________
cSharp is offline   Reply With Quote
Old 21/05/2019, 06:32 PM   #3
StRaphael
Big Clucker
 
Join Date: Nov 2016
Posts: 124
Reputation: 0
Default Re: warning 211: possibly unintended assignment

Omg, I'm so stupid, I messed up the code xD
for(new i; i=sizeof(PlayerInfo); i++) >> for(new i; i<sizeof(PlayerInfo); i++) and resolved
Thanks anyway!
StRaphael is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
warning 211: possibly unintended assignment n00blek Scripting Help 3 29/10/2017 03:45 PM
warning 211: possibly unintended assignment ChromeAmazing Scripting Help 2 26/02/2015 02:29 AM
warning 211: possibly unintended assignment Stoyanov Scripting Help 2 12/11/2014 06:34 PM
warning 211: possibly unintended assignment [WA]iRonan Scripting Help 2 29/12/2013 01:26 PM
possibly unintended assignment DaniceMcHarley Scripting Help 2 14/11/2013 10:09 AM


All times are GMT. The time now is 11:52 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.