Array Operations
Hi I have this
PHP Code:
|
Re: Array Operations
What do you mean by determinat?
|
Re: Array Operations
The password only allows 3 characters and then the last slot is ^0 because Password is a string with a size of 4, giving it a max length of 3.
Also, Password is not a 2D array for players, so you should not index it by the player id when copying it from szArg. PHP Code:
PHP Code:
PHP Code:
PHP Code:
It's a math term for matrices. http://en.wikipedia.org/wiki/Determinant |
Re: Array Operations
a b
X= c d Determinant= a × d − c ×b = 1 @Exolent Now the plugin works but I don´t understand what mean the operations :S // 1234 / 1000 = 1 // (1234 / 100) % 10 = (12) % 10 = 2 // (1234 / 10) % 10 = (123) % 10 = 3 // 1234 % 10 = 4 More: Why i can´t use this to make the inverse array? PHP Code:
|
Re: Array Operations
Those calculations get the 4 digits of the number you need.
That is now an array of numbers, not a string. So you can't just print it out like that. You must print it as an integer. PHP Code:
|
Re: Array Operations
Thank you again Exolent and i´ve found an error:
PHP Code:
PHP Code:
|
Re: Array Operations
Quote:
Quote:
Quote:
A determinant is NOT an array operation. It is a matrix operation. Matrix != Array. |
Re: Array Operations
Quote:
Yeah, i´m mistaken xD |
Re: Array Operations
When you code a matrix in Pawn, you will use arrays.
|
Re: Array Operations
Im thinking, is not the same, array=matrix?
THis code can be optimized?: PHP Code:
|
| All times are GMT -4. The time now is 10:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.