Am 2 warnins - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Am 2 warnins (
/showthread.php?tid=363857)
Am 2 warnins -
Cavetchi - 28.07.2012
Hi, I can not figure out where is wrong so ask sa-mp:
I have this line:
if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 & PlayerInfo[playerid][pPcarkey3] == 999 && PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pPcarkey7]== 999)
and shows me that after compile:
.pwn(24186) : warning 212: possibly unintended bitwise operation
.pwn(24186) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 11624 bytes
Code size: 2454776 bytes
Data size: 11658952 bytes
Stack/heap size: 16384 bytes; estimated max. usage=4211 cells (16844 bytes)
Total requirements:14141736 bytes
2 Warnings.
Sorry for my bad english but i'm romainian and I not speak more english.....
Re: Am 2 warnins -
milanosie - 28.07.2012
Is the line you shown us line 24186? Because I don't see how a line like that could give you a stack/heap warning.
It's probably something else in the script
Re: Am 2 warnins -
Cavetchi - 28.07.2012
Look here:
[img=http://s12.postimage.org/mramuwquh/2warning.jpg]
the rest of the line is higher
And again, sorry for my bad english
Re: Am 2 warnins -
Ballu Miaa - 29.07.2012
Try this once. try putting all this one line
pawn Код:
if(PlayerInfo[playerid][pPcarkey] == 999 && PlayerInfo[playerid][pPcarkey2] == 999 && PlayerInfo[playerid][pPcarkey3] == 999 && PlayerInfo[playerid][pPcarkey4] == 999 && PlayerInfo[playerid][pPcarkey5] == 999 && PlayerInfo[playerid][pPcarkey6] == 999 && PlayerInfo[playerid][pPcarkey7]== 999)
Re: Am 2 warnins -
Cavetchi - 29.07.2012
Thank you for help, it's work perfect ! What change at the line ?