Jump to content
  • 0

ReturnUser


Nurdock

Question

Problema intalnita (descriere):Am implementat in gm meu un system de a raspunde la reporturi dar imi da o eroare.
Ero(area / rile) / warning-(ul / urile): D:\New folder\gta sa pentru samp\s4uriK v5.3.8\gamemodes\s4uriK.pwn(27117) : error 017: undefined symbol "ReturnUser"
Liniile de cod / sursa / script-ul(obligatoriu):-
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da, am incercat sa il fac prin ReturnUser[MAX_PLAYERS]; dar nu a mers :( . 

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0
CMD:ajut(playerid, params[])
{
    if(IsPlayerConnected(playerid))
    {
        new tmp[60], idx, sendername[MAX_PLAYER_NAME], string[196];
        if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            tmp = strtok(params, idx);
            if(!strlen(tmp))
            {
                SendUsage(playerid,"/ajut [playerid/PartOfName]");
                return 1;
            }
            new idplayer;
            idplayer = ReturnUser(tmp);
            new numeplayer[64];
            GetPlayerName(idplayer, numeplayer, sizeof(numeplayer));
            if(IsPlayerConnected(idplayer))
            {
                if(idplayer != INVALID_PLAYER_ID)
                {
                    if(PlayerInfo[playerid][pAdmin] >= 1)
                    {
                        if(CalAjutor[idplayer] == 1)
                        {
                            format(string, sizeof(string), "AJUTOR REPORT: {FFFFFF}Adminul %s a preluat reportul lui %s.", sendername, numeplayer);
                            HBroadCast(0xC90000FF, string);
                            ABroadCast(0xC90000FF, string, 1);
                            CalAjutor[idplayer] = 0;
                        }
                    }
                    if(PlayerInfo[playerid][pHelper] >= 1)
                    {
                        if(CalAjutor[idplayer] == 1)
                        {
                            format(string, sizeof(string), "AJUTOR REPORT: {FFFFFF}Helper-ul %s va asista in cazul problemei tale trimise pe /report.", sendername);
                            SendClientMessage(idplayer, 0xC90000FF, string);
                            format(string, sizeof(string), "HAjut: {FFFFFF}Il vei ajuta pe %s. Pentru a te teleporta la el, foloseste /goto.", numeplayer);
                            SendClientMessage(playerid, 0xC90000FF, string);
                            format(string, sizeof(string), "AJUTOR REPORT: {FFFFFF}Helper-ul %s a raspuns cererii de ajutor a lui %s.", sendername, numeplayer);
                            HBroadCast(0xC90000FF, string);
                            ABroadCast(0xC90000FF, string,1);
                            CalAjutor[idplayer] = 0;
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Acest player nu a cerut ajutor!");
                    }
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Acest jucator nu este conectat!");
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_WHITE, "{C90000}Info: {FFFFFF}Nu esti autorizat sa folosesti aceasta comanda!");
        }
    }
    return 1;
}

 

Edited by KenZ0R12341
Link to comment
Share on other sites

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.