Problem with Sizeof
My code
PHP Code:
Code:
Error: Expected token: "]", but found "-integer value-" on line 22 |
Re: Problem with Sizeof
sizeof is used to find the size in chars of a string in Pawn, I believe.
|
Re: Problem with Sizeof
sizeof will not work in that fashion.
You can use strlen( array[0] ) From Pawn language guide: Code:
• Arrays and the sizeof operator |
Re: Problem with Sizeof
sizeof MyArray[] ; if array is : MyArray[][]
[edit] : Ah you want the size of one specific string ? You have to use strlen. |
Re: Problem with Sizeof
Quote:
|
| All times are GMT -4. The time now is 02:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.