23.03.2017, 15:42
Don't do it like that.
Read up more on Enums here
PHP код:
enum EventInfo
{
Float:Xq, Float:Yq, Float:Zq, Float:Aq,
Nome[64], Aberto, Criado, Cerrado,
Premio1, Premio2, Premio3, PremioS,
Cor1, Cor2, Arma, Admin, // Admin[64] Why 64?
Vida,
};
new Player[MAX_PLAYERS][EventInfo];
if(Player[playerid][Criado] == 0)
{
ShowPlayerDialog(playerid, DIALOG_EVENTO, DIALOG_STYLE_LIST, "Own Event: Closed", Mensagem, "Selecc", "Cancel");
}
else if(Player[playerid][Criado] == 1)
{
new StrE[ 75 ];
format(StrE,sizeof(StrE),"Own Event: Opened by %s",Player[playerid][Admin]); //Still think we need a GetName Function here
ShowPlayerDialog(playerid, DIALOG_EVENTO, DIALOG_STYLE_LIST, StrE, Mensagem, "Selecc", "Cancel");
}