Jump to content
  • 0

De unde au aparut ??


Kaps

Question

E:\DWN\H-RP\pawno\include\streamer.inc(487) : warning 219: local variable "hitid" shadows a variable at a preceding level
E:\DWN\samp03\gamemodes\CG.pwn(26009) : error 047: array sizes do not match, or destination array is too small
E:\DWN\samp03\gamemodes\CG.pwn(26399) : error 047: array sizes do not match, or destination array is too small
E:\DWN\samp03\gamemodes\CG.pwn(27024) : error 047: array sizes do not match, or destination array is too small
E:\DWN\samp03\gamemodes\CG.pwn(30714) : warning 219: local variable "mod" shadows a variable at a preceding level
E:\DWN\samp03\gamemodes\CG.pwn(66683) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"
Pawn compiler 3.2.3664     Copyright (c) 1997-2006, ITB CompuPhase

 

 

Nu am gasit linia 66683 , si nici vreo problema la liniile 30714 / 270124 / 26399 , desii am modificat , in continuare aceeasi problema , si la 30714 habar nu am , ma ajutati ?? :)

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

Pai la acel warning "hitid" a mai fost definit odata, la erori probabil ai un string sau ceva de genu si trebuie sa ii dai o valoare mai mare.

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

  • 0
Citat

E:\DWN\CG.pwn(198) : error 017: undefined symbol "ret_memcpy"
E:\DWN\CG.pwn(22079) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22079) : error 033: array must be indexed (variable "cmd")
E:\DWN\CG.pwn(22129) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22129) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22195) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22195) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22336) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22336) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22370) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22370) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22506) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22506) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22578) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22578) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22603) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22603) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22610) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22610) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22636) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22636) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22645) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22645) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22702) : error 017: undefined symbol "strtok"
E:\DWN\CG.pwn(22702) : error 033: array must be indexed (variable "tmp")
E:\DWN\CG.pwn(22726) : error 017: undefined symbol "strtok"

Compilation aborted.Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.

 

Au aparut cand incercam sa le repar pe celelalte ..

Citat

     }
       Pcomm[playerid] = 1;
    SetTimerEx("AntiChatSpam", 1000, false, "i", playerid);
    dcmd(specplayer, 10, cmdtext);
    dcmd(specoff, 7, cmdtext);
    new string[2048];
    new playermoney;
    new sendername[MAX_PLAYER_NAME];
    new giveplayer[MAX_PLAYER_NAME];
    new playername[MAX_PLAYER_NAME];
    new cmd[256];
    new tmp[256];
    new giveplayerid, moneys, glasseid, skin, idx, id;
    new idcar = GetPlayerVehicleID(playerid);
    new pveh = GetVehicleModel(GetPlayerVehicleID(playerid));
    cmd = strtok(cmdtext, idx);
//=============================================================================================================================================================
// Comanda /report
//=============================================================================================================================================================
    if(strcmp(cmd, "/report", true) == 0)
    {
      if(IsPlayerConnected(playerid))
      {
        GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "Use: /report [text]");
                return 1;
            }
            if(rTime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "Poti cere ajutor odata la 30 de secunde!");
            format(string, sizeof(string), "[REPORT] %s(ID:%d): %s", sendername,playerid, (result));
            ABroadCast(COLOR_ASKQ,string,1);
            SendClientMessage(playerid, COLOR_YELLOW, "{FFEF00}Raportul tau a fost trimis la Adminii {13C5E1}CG:RPG");
            rTime[playerid] = 1;
            SetTimerEx("Report", 30000, 0, "%d", playerid);
      }
      return 1;
    }
//=============================================================================================================================================================
// Comanda /am
//=============================================================================================================================================================
    if(strcmp(cmd, "/pm", true) == 0 || strcmp(cmd, "/am", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 1)
            {
                if(gPlayerLogged[playerid] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "   Nu te-ai logat inca!");
                    return 1;
                   }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /am(essage) [playerid/PartOfName] [text]");
                    return 1;
                }
                giveplayerid = ReturnUser(tmp);
                if (IsPlayerConnected(giveplayerid))
                {
                       if(giveplayerid != INVALID_PLAYER_ID)
                       {
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        if(giveplayerid == playerid)
                        {
                            format(string, sizeof(string), "* %s mutters something to himself.", sendername);
                            ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        }
                        new length = strlen(cmdtext);
                        while ((idx < length) && (cmdtext[idx] <= ' '))
                        {
                            idx++;
                        }
                        new offset = idx;
                        new result[64];
                        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                        {
                        result[idx - offset] = cmdtext[idx];
                        idx++;
                        }
                        result[idx - offset] = EOS;
                        if(!strlen(result))
                        {
                            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /am(essage) [playerid/PartOfName] [text]");
                            return 1;
                        }
                        format(string, sizeof(string), "%s AM: %s", sendername, (result));
                        SendClientMessage(giveplayerid, COLOR_GREEN, string);
                        format(string, sizeof(string), "AM trimis lui %s: %s", giveplayer, (result));
                        SendClientMessage(playerid,  COLOR_GREEN, string);
                        return 1;
                    }
                }
                else
                {
                    format(string, sizeof(string), "   %d nu este online.", giveplayerid);
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
            }
        }
        return 1;
    }
//=============================================================================================================================================================
// Comanda /agpm
//=============================================================================================================================================================
    if(strcmp(cmd, "/agentmessage", true) == 0 || strcmp(cmd, "/agpm", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAgent] >= 1)
            {
                if(gPlayerLogged[playerid] == 0)
                {
                    SendClientMessage(playerid, COLOR_GREY, "   You havent logged in yet!");
                    return 1;
                   }
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /agpm(agent message privat) [playerid/PartOfName] [text]");
                    return 1;
                }
                giveplayerid = ReturnUser(tmp);
                if (IsPlayerConnected(giveplayerid))
                {
                       if(giveplayerid != INVALID_PLAYER_ID)
                       {
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        if(giveplayerid == playerid)
                        {
                            format(string, sizeof(string), "* %s mutters something to himself.", sendername);
                            ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                        }
                        new length = strlen(cmdtext);
                        while ((idx < length) && (cmdtext[idx] <= ' '))
                        {
                            idx++;
                        }
                        new offset = idx;
                        new result[64];
                        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                        {
                        result[idx - offset] = cmdtext[idx];
                        idx++;
                        }
                        result[idx - offset] = EOS;
                        if(!strlen(result))
                        {
                            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /am(essage) [playerid/PartOfName] [text]");
                            return 1;
                        }
                        format(string, sizeof(string), "%s AGM: %s", sendername, (result));
                        SendClientMessage(giveplayerid, COLOR_YELLOW, string);
                        format(string, sizeof(string), "AGM sent to %s: %s", giveplayer, (result));
                        SendClientMessage(playerid,  COLOR_YELLOW, string);
                        return 1;
                    }
                }
                else
                {
                    format(string, sizeof(string), "   %d is not an active player.", giveplayerid);
                    SendClientMessage(playerid, COLOR_GRAD1, string);
                }
            }
        }
        return 1;
    }
//=============================================================================================================================================================
// Comanda /ajutor
//=============================================================================================================================================================
    if(strcmp(cmd, "/ajutor", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pHMuted] == 1)
            {
                SendClientMessage(playerid, TEAM_CYAN_COLOR, "   You can't speak, you have been silenced !");
                return 1;
            }
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /ajutor [text]");
                return 1;
            }
            if(ajTime[playerid] == 1) return SendClientMessage(playerid, COLOR_GRAD2, "Poti cere ajutor odata la 30 de secunde!");
            //format(string, sizeof(string), "[Ajutor] trimis de %s : %s", sendername, (result));
            format(string, sizeof(string), "[Ajutor] trimis de %s(ID:%d): %s", sendername,playerid, (result));
            HBroadCast(COLOR_ASKQ,string);
            SendClientMessage(playerid, COLOR_YELLOW, "{FFEF00}Raportul tau a fost trimis la Agentii {13C5E1}CG:RPG");
            ajTime[playerid] = 1;
            SetTimerEx("Ajutor", 30000, 0, "%d", playerid);
        }
        return 1;
    }
//=============================================================================================================================================================
// Comanda /askq
//=============================================================================================================================================================
    if(strcmp(cmd, "/askq", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            GetPlayerName(playerid, sendername, sizeof(sendername));
            new length = strlen(cmdtext);
            while ((idx < length) && (cmdtext[idx] <= ' '))
            {
                idx++;
            }
            new offset = idx;
            new result[64];
            while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
            {
                result[idx - offset] = cmdtext[idx];
                idx++;
            }
            result[idx - offset] = EOS;
            if(!strlen(result))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /askq [text]");
                return 1;
            }
            format(string, sizeof(string), "INTREBARE DE LA %s: %s", sendername, (result));
            ABroadCast(COLOR_ASKQ,string,1);
            format(string, sizeof(string), "INTREBARE DE LA %s: %s", sendername, (result));
            HBroadCast(COLOR_ASKQ,string);
            SendClientMessage(playerid, COLOR_ASKQ, "Intrebarea ta a fost trimisa la Admini/Agenti.");
        }
        return 1;
    }
//=============================================================================================================================================================
// Comanda /handsup
//=============================================================================================================================================================
     if(strcmp(cmd, "/handsup", true) == 0) {
        if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) {
            SetPlayerSpecialAction(playerid,SPECIAL_ACTION_HANDSUP);
                return 1;
        }
    }
//=============================================================================================================================================================
// Comanda /ochelari
//=============================================================================================================================================================
        if(!strcmp("/ochelari",cmd,true))
    {
        tmp = strtok(cmdtext, idx);
        skin = GetPlayerSkin(playerid);
        id = strval(tmp);

        if(!id || id > 33) return SendClientMessage(playerid, 0xFFFFFFAA, "(Error) Syntax: /glasses [1 - 33]");

        TextDrawShowForPlayer(playerid, MsgBox);
        SetTimerEx("Hide", 3500, false, "d", playerid);

        if(id > 30) goto PutPoliceGlasses;
        else
        {
            id--;
            glasseid =  CommonRed + id;
            SetPlayerHoldingObject(playerid, glasseid, 2, SkinOffSet[skin][0], SkinOffSet[skin][1], SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
            return 1;
        }

        PutPoliceGlasses:

        glasseid = CopGlassesBlack + (id - 31);
        SetPlayerHoldingObject(playerid, glasseid, 2, SkinOffSet[skin][0], floatadd(SkinOffSet[skin][1], 0.004500), SkinOffSet[skin][2], SkinOffSet[skin][3], SkinOffSet[skin][4], SkinOffSet[skin][5]);
        return 1;
    }
//=============================================================================================================================================================
// Comanda /spec
//=============================================================================================================================================================
    if(strcmp(cmd,"/spec",true) == 0)
    {
        if(PlayerInfo[playerid][pAdmin] < 1)
        {
            SendClientMessage(playerid, COLOR_YELLOW, "You're not authorised to spectate another player.");
            return 1;
        }
        tmp = strtok(cmdtext,idx);
        if(strlen(tmp) == 0)
        {
            SendClientMessage(playerid, COLOR_WHITE, "» Scrie: /spec [playerid]");
            return 1;
        }
        new otherplayer = ReturnUser(tmp);
        if(otherplayer == INVALID_PLAYER_ID)
        {
            SendClientMessage(playerid, COLOR_GREY, "Invalid player ID!");
            return 1;
        }
        TogglePlayerSpectating(playerid,1);
        if(IsPlayerInAnyVehicle(otherplayer)==1)
        {
            new Float:health;
            new name[MAX_PLAYER_NAME];
            GetPlayerName(otherplayer, name, sizeof(name));
            GetPlayerHealth(otherplayer, health);
            format(string, sizeof(string), "~n~~y~%s(ID:%d)~n~~y~health:%.1f",name,otherplayer,health);
            GameTextForPlayer(playerid, string, 150000, 3);
            PlayerSpectateVehicle(playerid, GetPlayerVehicleID(otherplayer));
        }
        else
        {
            new Float:health;
            new name[MAX_PLAYER_NAME];
            GetPlayerName(otherplayer, name, sizeof(name));
            GetPlayerHealth(otherplayer, health);
            format(string, sizeof(string), "~n~~y~%s(ID:%d)~n~~y~health:%.1f",name,otherplayer,health);
            GameTextForPlayer(playerid, string, 150000, 3);
            PlayerSpectatePlayer(playerid,otherplayer);
        }
        SendClientMessage(playerid, COLOR_WHITE, "To finish your spectation session, use /specoff.");
        return 1;
    }
//=============================================================================================================================================================
// Comanda /specoff
//=============================================================================================================================================================
    if(strcmp(cmd,"/specoff",true)==0)
    {
        TogglePlayerSpectating(playerid,0);
        SetPlayerVirtualWorld(playerid,0);
        SetPlayerInterior(playerid,0);
        SendClientMessage(playerid, COLOR_GRAD4, "You have finished spectating.");
        return 1;
    }
    if(strcmp(cmd, "/saver", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            if(PlayerInfo[playerid][pAdmin] >= 3)
              {
                   for(new i = 0; i < MAX_PLAYERS; i++)
                {
                    GameTextForPlayer(i, "Saving...", 4000, 5);
                    OnPlayerUpdateEx(i);
                }
            }
        }
        return 1;
    }
    if(strcmp(cmd, "/papagal", true) == 0)
    {
        SendClientMessage(playerid,0xFFFFFFFF,"Te-ai ales cu un papagal!");
        SetPlayerAttachedObject(playerid,2,19078,1,0.320722,-0.067912,-0.165151,0.000000,0.000000,0.000000,1.000000,1.000000,1.000000); // Parrot
        return 1;
    }
    if(strcmp(cmd, "/papagaloff", true) == 0)
    {
        SendClientMessage(playerid,0xFFFFFFFF,"Ai gonit papagalul!");
        RemovePlayerAttachedObject(playerid, 2);
        return 1;
    }
//=============================================================================================================================================================
// Comanda /startengine
//=============================================================================================================================================================
    if(strcmp(cmd, "/startengine",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
        if(vid != INVALID_VEHICLE_ID) {
            if(IsABBike(vid)) return SendClientMessage(playerid, COLOR_GRAD2, "This bike doesen't have engine!");
            GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
//                                 ||||||
            SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
//VEHICLE_PARAMS_ON is used to start the engine,it purely replace the engine thing!
        }
        return 1;
    }
//=============================================================================================================================================================
// Comanda /stopengine
//=============================================================================================================================================================
    if(strcmp(cmd, "/stopengine",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
        if(vid != INVALID_VEHICLE_ID) {
            if(IsABBike(vid)) return SendClientMessage(playerid, COLOR_GRAD2, "Acest vehicul nu are motor");
            GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
//                                 ||||||
            SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
//Here the VEHICLE_PARAMS_OFF will turn off your engine.
        }
        return 1;
    }
//=============================================================================================================================================================
// Comanda /lightson
//=============================================================================================================================================================
    if(strcmp(cmd, "/lightson",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
        if(vid != INVALID_VEHICLE_ID) {
            GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
//                                        ||||||
            SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
//VEHICLE_PARAMS_ON is used to turn onn the lights.
        }
        return 1;
    }
//=============================================================================================================================================================
// Comanda /lightsoff
//=============================================================================================================================================================
    if(strcmp(cmd, "/lightsoff",true) == 0) {
        new vid = GetPlayerVehicleID(playerid);
        if(vid != INVALID_VEHICLE_ID) {
            GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
//                                        ||||||
            SetVehicleParamsEx(vid,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
//Here the VEHICLE_PARAMS_OFF will turn off your lights.
        }
        return 1;
    }

//=============================================================================================================================================================
// Comanda /fpk
//=============================================================================================================================================================
    if(strcmp(cmd, "/fpk", true) == 0)
      {
        if(IsPlayerConnected(playerid))
        {
            tmp = strtok(cmdtext, idx);
            if(!strlen(tmp))
            {
                SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fpk [id/name] [PKer]");
                return 1;
            }
            giveplayerid = ReturnUser(tmp);
            if (PlayerInfo[playerid][pAdmin] >= 4)
            {
                if(IsPlayerConnected(giveplayerid))
                {
                    if(giveplayerid != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        new length = strlen(cmdtext);
                        while ((idx < length) && (cmdtext[idx] <= ' '))
                        {
                            idx++;
                        }
                        new offset = idx;
                        new result[64];
                        while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
                        {
                            result[idx - offset] = cmdtext[idx];
                            idx++;
                        }
                        result[idx - offset] = EOS;
                        result[0] = toupper(result[0]);
                        if(!strlen(result))
                        {
                            SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /fpk [id/name] [PKer]");
                            return 1;
                        }
                           format(string, sizeof(string), "[FPK] %s a fost dat afara din factiune de catre %s - Motiv: {FD6507}%s", giveplayer, sendername, (result));
                        SendClientMessageToAll(0x5EFB6EFF, string);
                        format(string, sizeof(string), "Ai fost dat afara din factiune de catre Adminul %s.",sendername);
                        SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
                        PlayerInfo[giveplayerid][pMember]=0;
                        PlayerInfo[giveplayerid][pLeader]=0;
                        PlayerInfo[giveplayerid][pRank] = 0;
                        PlayerInfo[giveplayerid][pChar] = 60;
                        PlayerInfo[giveplayerid][pTeam] = 3;
                        new rand = random(sizeof(CIV));
                        SetSpawnInfo(giveplayerid, gTeam[giveplayerid], CIV[rand],0.0,0.0,0.0,0,0,0,0,0,0,0);
                        PlayerInfo[giveplayerid][pModel] = CIV[rand];
                        MedicBill[giveplayerid] = 0;
                        SpawnPlayer(giveplayerid);
                        return 1;
                    }
                }
            }
            else
            {
                format(string, sizeof(string), "   %d nu este online.", giveplayerid);
                SendClientMessage(playerid, COLOR_GRAD1, string);
            }
        }
        return 1;
    }
//=============================================================================================================================================================
// = Comanda: /getip
//=============================================================================================================================================================
    if(strcmp(cmd, "/getip", true) == 0)
    {
                    if (PlayerInfo[playerid][pAdmin] > 1337)
                    {
                        SendClientMessage(playerid, COLOR_GRAD1, "{30a030}[CG:RPG]: {FFFFFF}Ne pare rau, dar nu poti vizualiza IP-ul acestui Admin.");
                        return 1;
                    }
        if (PlayerInfo[playerid][pAdmin] >= 1)
        {
            tmp = strtok(cmdtext,idx);
            new playersip[256];
            if(!strlen(tmp))
            {
                  SendClientMessage(playerid,COLOR_GRAD1,"» Scrie: /getip [Players ID]");
                return 1;
            }
             giveplayerid = ReturnUser(tmp);
            GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
            GetPlayerIp(giveplayerid,playersip,sizeof(playersip));
             format(string, sizeof(string), "» Jucator %s • IP: %s.",giveplayer,playersip);
            SendClientMessage(playerid,COLOR_GRAD2,string);
        }
        return 1;
    }

//=============================================================================================================================================================
// Comanda /agm
//=============================================================================================================================================================
    if(strcmp(cmd, "/agivemats", true) == 0 || strcmp(cmd, "/agm", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 4)
        {
            if(IsPlayerConnected(playerid))
            {
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /agivemats [playerid/PartOfName] [amount]");
                    return 1;
                }
                giveplayerid = ReturnUser(tmp);
                tmp = strtok(cmdtext, idx);
                if(!strlen(tmp))
                {
                    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /agivemats [playerid/PartOfName] [amount]");
                    return 1;
                }
                new playa;
                GetPlayerName(playa, sendername, sizeof(sendername));
                playa = ReturnUser(tmp);
                moneys = strval(tmp);
                PlayerInfo[giveplayerid][pMats] = moneys;
                GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, 256, "AdmWarning: Admin %s has give mats %s mats %d", sendername,giveplayer,moneys);
                ABroadCast(COLOR_LIGHTRED,string,1);
            }
        }
        return 1;
    }

 

Liniile de la 22079 la 22726 , e prima oara cand vad o astfel de eroare si sincer habar nu am cum sa o rezolv , si multumesc pentru implicare .

Edited by Kaps
Link to comment
Share on other sites

  • 0

Pui după includes

#pragma unused ret_memcpy

 

Dai restul erorilor după.

Edited by DaEdRiC-FoX

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.