Jump to content
  • 0

CMD:unban


Jimmi

Question

Problema intalnita (descriere):Incerc sa trec cateva comenzi pe mysql r39-3 si imi da erori e la vechile functii...Ma poate ajuta cineva
Ero(area / rile) / warning-(ul / urile):
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:Am trecut unele comenzi adica /makeleaderoff facandule public dar la asta nu stiu cum sa o fac

(26545) : error 017: undefined symbol "mysql_store_result"
(26546) : error 017: undefined symbol "mysql_num_rows"
(26549) : error 017: undefined symbol "mysql_free_result"
(26552) : error 017: undefined symbol "mysql_num_rows"
(26555) : error 035: argument type mismatch (argument 1)
(26556) : error 017: undefined symbol "mysql_store_result"
Liniile de cod / sursa / script-ul(obligatoriu):
//========================================[CMD:UNBAN]==========================================================
CMD:unban(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        if(PlayerInfo[playerid][pAdmin] >= 3)
        {
            new givename[26], string [256],qwr[256];
            if (!sscanf(params, "s[26]", givename))
            {
                format(qwr,sizeof(qwr),"SELECT * FROM `bans` WHERE Name = '%s'",givename);
                mysql_query(string);
                mysql_store_result();
                if(mysql_num_rows())
                {
                    format(string,sizeof(string),"DELETE FROM `bans` WHERE Name = '%s'",givename);
                    mysql_query(string);
                    format(string,sizeof(string), "Numele %s a primit unban", givename);
                    SendClientMessage(playerid,-1,string);
                }
                else
                {
                    format(string,sizeof(string), "Numele %s nu este banat", givename);
                    SendClientMessage(playerid,-1,string);
                }
            }
            else SendClientMessage(playerid, 0xFFFFFFFF, "{FF4D4D}Foloseste: {FFFFFF}/unban [Nume Jucator]");
        }
        else SendClientMessage(playerid, COLOR_GREY, "{FF4D4D}Info:{FFFFFF}Nu ai rangul administrativ necesar !");
    }
    return 1;
}
Edited by Jimmi
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.