Symbol is never used
I get symbol is never used on iSize1 and iSize2, but the variables are already being used, is Pawn just, dumb?
Code:
|
Re: "Symbol is never used"
Afaik you shouldn't be able to use sizeof for iSize as they're not arrays
|
Re: "Symbol is never used"
Quote:
|
Re: "Symbol is never used"
change :
containi_all( szStringSrc[ ], iSize1, szStringCompare[ ], iSize2 ) to : stock containi_all( szStringSrc[ ], iSize1, szStringCompare[ ], iSize2 ) or : public containi_all( szStringSrc[ ], iSize1, szStringCompare[ ], iSize2 ) |
Re: "Symbol is never used"
I already fixed everything, thanks anyways, here's the full solution:
Code:
|
Re: "Symbol is never used"
That what equal function does?
I don't see the reason of you using this function since its totally useless. |
Re: "Symbol is never used"
Quote:
If you're interested what it does, it compares each character of both strings to see if string1 contains all the characters from string2, normal contain/i compares strings as whole, so if we have abcd and adcb it's going to return false, even though they both are the same, except for the order. Normal contain: PHP Code:
Code:
L 07/17/2019 - 19:17:05: False PHP Code:
Code:
L 07/17/2019 - 19:20:00: True |
Re: "Symbol is never used"
If they are flags, you can just use read_flags with some bit operations.
|
Re: "Symbol is never used"
Quote:
* Convert to bits (twice) * Use read_flags (twice) * Compare using equal vs * Use a single stock |
Re: "Symbol is never used"
Quote:
* Use read_flags (twice) * Compare using == operator Or you can just order them alphabetically and then use equal |
All times are GMT -4. The time now is 20:32. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.