un error muy tonto
#1

bueno es un error muy simple:
error:
Quote:

error 033: array must be indexed (variable "Playerinevent")

cуdigo:
pawn Код:
new Playerinevent[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{

    if(Playerinevent[playerid] == 1)
    {
    Playerinevent[playerid] == 0;
    GivePlayerMoney(killerid, 500);
    SetPlayerScore(killerid, GetPlayerScore(killerid)+2);
    }
    return 1;
}
Reply
#2

pawn Код:
Playerinevent[playerid] = 0; // Un '=' de mбs.
Reply
#3

(14) : error 017: undefined symbol "playerid"

me da este error aquн:
pawn Код:
public OnGameModeInit()
{
    OSEvent = 0;
    Playerinevent[playerid] = 0;
    return 1;
}
Reply
#4

Quote:
Originally Posted by Porta0123
Посмотреть сообщение
(14) : error 017: undefined symbol "playerid"

me da este error aquн:
pawn Код:
public OnGameModeInit()
{
    OSEvent = 0;
    Playerinevent[playerid] = 0; //<--- Error
    return 1;
}
Claramente dice que no existe "playerid", en esa CallBack ese parбmetro no existe...

Te recomiendo poner eso en OnPlayerConnect.


pawn Код:
public OnPlayerConnect(playerid)
{
    Playerinevent[playerid] = 0;
}
Reply
#5

gracias , ya esta arreglado
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)