Run time error 4: "Array index out of bounds"
#10

Quote:
Originally Posted by CuervO
Посмотреть сообщение
According the error itself you're using 65535 (which is also INVALID_PLAYER_ID) on an array, while the max cell is the 499th. Probably forgot to check if there's a killerid before modifying the arrays?
So what should i do? add this in the top of the public?

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
	if(killerid != INVALID_PLAYER_ID)
    {
// code
// code 
// bla bla bla
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)