[Ajuda] Infoorg
#1

Galera achei esse infoorg mas esta dando 4 erros alguem poderia me ajudar a corrigi-los?

Код:
if(!strcmp(cmd, "/infoorg", true))
{
    new string[0x80], string2[0x80], stringbase[0x80];
    format(string, sizeof string, "Membro1: %s\nMembro2: %s\nMembro3: %s\nMembro4: %s\n Membro5: %s", InfoOrg[PlayerInfo[playerid][pMember]][orgMembro1],InfoOrg[PlayerInfo[playerid][pMember]][orgMembro2],InfoOrg[PlayerInfo[playerid][pMember]][orgMembro3],InfoOrg[PlayerInfo[playerid][pMember]][orgMembro4],InfoOrg[PlayerInfo[playerid][pMember]][orgMembro5]);
    format(string2, sizeof string2, "Membro6: %s\nMembro7: %s\nMembro8: %s\nMembro9: %s\n Membro10: %s", InfoOrg[PlayerInfo[playerid][pMember]][orgMembro5],InfoOrg[PlayerInfo[playerid][pMember]][orgMembro7],InfoOrg[PlayerInfo[playerid][pMember]][orgMembro8],InfoOrg[PlayerInfo[playerid][pMember]][orgMembro9],InfoOrg[PlayerInfo[playerid][pMember]][orgMembro10]);
    format(stringbase, sizeof stringbase, "%s %s", string, string2);
    ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "[InfoOrg]", stringbase, "OK", " ");
}
 //Exemplo de [ONLINE] e [OFFLINE]
if(JogadorOnline( ChecarPlayerID(orgInfo[PlayerInfo[playerid][pMember]][orgMembro1])))
{
    format(string,  sizeof(string), "%s [ONLINE]", orgInfo[PlayerInfo[playerid][pMember]][orgMembro1]);
}

stock JogadorOnline(playerid) {
    if(IsPlayerConnected(playerid)) {
        if(pLogged[i] == 1) {
            return 0x01;
        } else {
            return 0;
        }
    } else {
        return 0;
    }
}

stock ChecarPlayerID(string[]) {
    for(new i = 0; i <= MAX_PLAYERS; ++i)
    {
        if(IsPlayerConnected(i) == 1)
        {
            new tnome[MAX_PLAYER_NAME];
            GetPlayerName(i, tnome, sizeof(tnome) );
            if(strcmp(tnome, string, true, strlen(string)) == 0)
            {
                return i;
            }
        }
    }
    return INVALID_PLAYER_ID;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)