Quote:
Originally Posted by pokemonmaster
PHP Code:
new iArray[32] // and id = 32 iArray[id] = 5 server_print("%d", iArray[id])// And this function won't work // WRONG ^^
// THE RIGHT ONE new iArray[33] iArray[id] = 5 server_print("%d", iArray[id])
PHP Code:
new players[32], count get_players(players, count)
/* if count == 5 Then players will look like this players[0] = 1 players[1] = 2 players[2] = 3 players[3] = 4 players[4] = 5 */
|
I got it now so to make it simple we just need to declare the array to 33 but the server will consider it as 32, and if we make it less than 33 there will be an issue.
HTML Code:
(Index out of bounds)
Correct me if I am wrong.