error 017: undefined symbol "pInfo"
error 009: invalid array size (negative, zero or out of bounds)
-
Linha : new PlayerInfo[MAX_PLAYERS][pInfo];
enum pInfo
{
//Variбveis
};
warning 213: tag mismatch
-
INI_ReadString(PlayerInfo[playerid][pSenha],"Senha",20);
if(strcmp(inputtext,PlayerInfo[playerid][pSenha],false)) {
ShowPlayerDialog(playerid, DialogEntrar, DIALOG_STYLE_INPUT, ""BRANCO"Logar",""VERMELHO"Vocк digitou uma senha incorreta.\n"BRANCO"Digite sua senha abaixo para acessar.","Logar","Quit");
}
SetPlayerScore( playerid, INI_ReadInt("Score" ) );
ResetPlayerMoney( playerid );
SpawnPlayer(playerid);
GivePlayerMoney( playerid, INI_ReadInt( "Dinheiro" ) );
PlayerInfo[playerid][pAdmin] = INI_ReadInt("Admin");
INI_Close();
}
}
}
}
return 1;
}
//-----------------------------------------------------------------------------------------------------
public OnPlayerRequestSpawn(playerid)
{
//printf("OnPlayerRequestSpawn(%d)",playerid);
return 1;
}
//------------------------------------------------------------------------------------------------------
public OnPlayerPickUpPickup(playerid, pickupid)
{
//new s[256];
//format(s,256,"Picked up %d",pickupid);
//SendClientMessage(playerid,0xFFFFFFFF,s);
}
//------------------------------------------------------------------------------------------------------
public MoneyGrubScoreUpdate()
{
new CashScore;
new name[MAX_PLAYER_NAME];
//new string[256];
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
GetPlayerName(i, name, sizeof(name));
CashScore = GetPlayerMoney(i);
SetPlayerScore(i, CashScore);
if (CashScore > CashScoreOld)
{
CashScoreOld = CashScore;
//format(string, sizeof(string), "$$$ %s is now in the lead $$$", name);
//SendClientMessageToAll(COLOR_YELLOW, string);
}
}
}
}
//------------------------------------------------------------------------------------------------------
/*public GrubModeReset()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if (IsPlayerConnected(i))
{
SetPlayerScore(i, PocketMoney);
SetPlayerRandomSpawn(i, classid);
}
}
}*/
//------------------------------------------------------------------------------------------------------
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"•AmericanStyle•",5000,5);
SendPlayerFormattedText(playerid, "Bem-vindo ao AmericanStyle.", 0);
gActivePlayers[playerid]++;
gLastGaveCash[playerid] = GetTickCount();
GetPlayerName(playerid, pname[playerid], MAX_PLAYER_NAME);
if (fexist(ObterINI(playerid)))
{
ShowPlayerDialog(playerid, DialogEntrar, DIALOG_STYLE_INPUT,""BRANCO"Login",""BRANCO"Digite sua senha abaixo para efetuar login.","logar","Quit");
}
else
{
ShowPlayerDialog(playerid, DialogRegistro, DIALOG_STYLE_INPUT,""BRANCO"Registrando",""BRANCO"Digite sua senha abaixo para registrar uma nova conta.","Registrar","Sair");
}
return 1;
}
//------------------------------------------------------------------------------------------------------
public OnPlayerDisconnect(playerid)
{
if(INI_Open(ObterINI(playerid))) {
INI_WriteInt("Score",PlayerInfo[playerid][pScore]);
INI_WriteInt("Dinheiro",GetPlayerMoney(playerid));
INI_WriteInt("Admin",PlayerInfo[playerid][pAdmin]);
pInfo e uma variavel
Botei dentro do enum deu vбrios undefined D: |
enum pInfo
{
pAdmin,
pLevel,
pVip
};
new PlayerInfo[MAX_PLAYERS][pInfo];
нf(PlayerInfo[playerid][pAdmin] >= 1) //Exemplo