Jump to content

Stefan

Membru
  • Posts

    83
  • Joined

  • Last visited

    Never

Posts posted by Stefan

  1. aveam #pragma tabsize 0 sub include a_samp dar mai aveam pe undeva pe la sscanf #pragma tabsize 4 si l-am sters iar acum imi apare doar acest warning

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(30855) : warning 219: local variable "para1" shadows a variable at a preceding level

    pe la comanda asta imi apare new para1; unde da warningu

    [pawn] if(strcmp(cmd, "/makehelper", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SCM(playerid, COLOR_GRAD2, "USAGE: /makehelper [playerid/PartOfName] [1-4]");

    return 1;

    }

    new para1;

    new level;

    para1 = ReturnUser(tmp);

    tmp = strtok(cmdtext, idx);

    level = strval(tmp);

    if (PlayerInfo[playerid][pAdmin] >= 8 || PlayerInfo[playerid][pHelper] >= 4)

    {[/pawn]

  2. Nu stiu ce am facut de imi da aceste warning-uri ca nu mi le dadea inainte cred ca nu mai sunt in linie unele chestii.ma puteti ajuta va rog?

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(26824) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(26860) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(27395) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(27436) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(29328) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(29335) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(29336) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(29346) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(29351) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(30799) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(30853) : warning 219: local variable "para1" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(40420) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(40570) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(45501) : warning 217: loose indentation

    C:\Users\Stefan\Desktop\RealGaming RPG\gamemodes\GM.pwn(45564) : warning 217: loose indentation

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    Linia 26824 [pawn] if (PlayerInfo[playerid][pAdmin] >= 2)[/pawn]

    Linia 26860 [pawn] SendClientMessage(playerid, COLOR_GREEN,"____________________________________________________________________________");[/pawn]

    Linia 27395 [pawn]      if(strcmp(cmd, "/aod", true) == 0)[/pawn]

    Linia 30853 [pawn] new para1;[/pawn]

    imi zicea cineva ca se rezolva cu #pragma tabsize 0 dar nu stiu cum

  3. Salutare am comanda /setadmin si as vrea sa fac sa functioneze si cu RCON dar nu stiu cum

    [pawn] if(strcmp(cmd, "/setadmin", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SCM(playerid, COLOR_GRAD2, "{B8DBFF}Foloseste: /setadmin [playerid/PartOfName] [level(1-6)]");

    return 1;

    }

    new level;

    para1 = ReturnUser(tmp),GetPlayerName(para1, giveplayer, sizeof(giveplayer));

    tmp = strtok(cmdtext, idx);

    level = strval(tmp);

    if (PlayerInfo[playerid][pAdmin] >= 8)

    {

        if(IsPlayerConnected(para1))

        {

            if(para1 != INVALID_PLAYER_ID)

            {

    GetPlayerName(para1, giveplayer, sizeof(giveplayer));

    PlayerInfo[para1][pAdmin] = level;

    format(string, sizeof(string), "  You have been promoted to a level %d admin by %s", level, sendername);

    SCM(para1, COLOR_LIGHTBLUE, string);

    SetPlayerSkin(playerid, 217);

    format(string, sizeof(string), "  You have promoted %s to a level %d admin.", giveplayer,level);

    SCM(playerid, COLOR_LIGHTBLUE, string);

                    format(string, sizeof(string), "{6790BE}[AdmWarning]{FFFFFF}: %s i-a dat admin[%d] lui %s {FF0000}!",sendername,level,giveplayer);

                    ABroadCast(COLOR_LIGHTRED,string, 5);

                    new y, m, d;

            new h,mi,s;

            getdate(y,m,d);

            gettime(h,mi,s);

            format(string,sizeof(string), "[%02d/%02d/%02d || %02d:%02d:%02d] %s i-a dat admin[%d] lui %s !",d,m,y,h,mi,s,sendername,level,giveplayer);

            CMDADMLog(string);

    }

    }

    }

    else

    {

    SCM(playerid, COLOR_WHITE, "{FFFFCC}Tu nu ai voie sa folosesti aceasta comanda.");

    }

    }

    return 1;

    }[/pawn]

    Si mai am o comanda care o pot folosi toti playerii dar eu vreau sa o fac sa o foloseasca doar adminii

    [pawn]if(strcmp(cmdtext, "/cod1", true) == 0)

    {

        new Float:plocx,Float:plocy,Float:plocz;

            GetPlayerPos(playerid, plocx, plocy, plocz);

            SetXmasTree(plocx,plocy,plocz);

    SetPlayerPos(playerid, plocx-2.5, plocy+2.5, plocz);

        return 1;

    }[/pawn]

  4. am o problema la comanda /buyprods cand tastez /buyprods imi scrie din prima Produse 0/0 nu imi mai apare /buyprods amount si chiar daca scriu /buyprod 100 imi zice 0/0

    [pawn] if(strcmp(cmd, "/buyprods", true) == 0)

    {

        if(IsPlayerConnected(playerid))

    {

    new tmpcar = GetPlayerVehicleID(playerid);

    new compcost = 20;

    if(PlayerToPoint(70.0, playerid, 2468.4919,-2092.9902,13.5469) || PlayerToPoint(70.0, playerid, -62.402423,-1135.789550,1.078125))

    {

    if(IsATruck(tmpcar))

    {

    if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity])

    {

        new amount;

        tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /buyprods [amount]");

    return 1;

    }

    amount = strval(tmp);

    if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "  Can't buy less then 1 Product or more then 500!"); return 1; }

    new check= PlayerHaul[tmpcar][pLoad] + amount;

    if(check > PlayerHaul[tmpcar][pCapasity])

    {

        format(string, sizeof(string), "  You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]);

        SendClientMessage(playerid, COLOR_GREY, string);

        return 1;

    }

    new cost = amount*compcost;

    if(GetPlayerMoney(playerid) >= cost)

    {

    PlayerHaul[tmpcar][pLoad] += amount;

    format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

    format(string, sizeof(string), "You bought %d Products for $%d.", amount,cost);

    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

    GivePlayerMoney(playerid,-cost);

    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

    SBizzInfo[12][sbTill] += cost;//prods buisness

    ExtortionSBiz(12, 100);

    return 1;

    }

    else

    {

    format(string, sizeof(string), "You cant afford %d Products at $%d!", amount,cost);

    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

    return 1;

    }

    }

    else

    {

    format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

    return 1;

    }

    }

    else

    {

    SendClientMessage(playerid, TEAM_GROVE_COLOR, "This Vehicle does not deliver Products.");

    return 1;

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_GREY, "You are not in trucker place.");

    return 1;

    }

    }

    return 1;

    }[/pawn]

    Nu prea as crede ca ar fi de la comanda ca la un Ynakee din cele 4 merge aceasta comanda.nu stiu de unde ar putea fi problema

  5. nu am mai facut alt topic dar mai am cateva erori la comanda /hod

    o problema la /buyprods cand scriu /buyprods imi apare deodata Prods 0/0 nu imi apare sa mai scriu si cate vreau sa cumpar nimic

    [pawn] if(strcmp(cmd, "/buyprods", true) == 0)

    {

        if(IsPlayerConnected(playerid))

    {

    new tmpcar = GetPlayerVehicleID(playerid);

    new compcost = 20;

    if(PlayerToPoint(70.0, playerid, 2468.4919,-2092.9902,13.5469) || PlayerToPoint(70.0, playerid, -62.402423,-1135.789550,1.078125))

    {

    if(IsATruck(tmpcar))

    {

    if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity])

    {

        new amount;

        tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /buyprods [amount]");

    return 1;

    }

    amount = strval(tmp);

    if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "  Can't buy less then 1 Product or more then 500!"); return 1; }

    new check= PlayerHaul[tmpcar][pLoad] + amount;

    if(check > PlayerHaul[tmpcar][pCapasity])

    {

        format(string, sizeof(string), "  You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]);

        SendClientMessage(playerid, COLOR_GREY, string);

        return 1;

    }

    new cost = amount*compcost;

    if(GetPlayerMoney(playerid) >= cost)

    {

    PlayerHaul[tmpcar][pLoad] += amount;

    format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

    format(string, sizeof(string), "You bought %d Products for $%d.", amount,cost);

    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

    GivePlayerMoney(playerid,-cost);

    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

    SBizzInfo[12][sbTill] += cost;//prods buisness

    ExtortionSBiz(12, 100);

    return 1;

    }

    else

    {

    format(string, sizeof(string), "You cant afford %d Products at $%d!", amount,cost);

    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

    return 1;

    }

    }

    else

    {

    format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);

    return 1;

    }

    }

    else

    {

    SendClientMessage(playerid, TEAM_GROVE_COLOR, "This Vehicle does not deliver Products.");

    return 1;

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_GREY, "You are not in trucker place.");

    return 1;

    }

    }

    return 1;

    }[/pawn]

  6. Salut!!am o problema la doua comenzi:

    La comanda /cuff cand dau de exemplu /cuff 1 tot pe mine ma leaga nu il leaga pe cel cu id 1

    Uitati comanda aici:

    [pawn] if(strcmp(cmd, "/cuff", true) == 0)

    {

      if(IsPlayerConnected(playerid))

      {

    if(gTeam[playerid] == 2 || IsACop(playerid))

    {

        tmp = strtok(cmdtext, idx);

    if(!strlen(tmp)) {

    SendClientMessage(playerid, COLOR_WHITE, "{B8DBFF}Synthax: /cuff [Playerid/PartOfName]");

    return 1;

    }

    giveplayerid = ReturnUser(tmp), GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

        if(IsPlayerConnected(giveplayerid))

    {

      if(giveplayerid != INVALID_PLAYER_ID)

      {

          if(gTeam[giveplayerid] == 2 || IsACop(giveplayerid))

          {

              SendClientMessage(playerid, COLOR_GREY, "  You can't Cuff Cops !");

          return 1;

          }

          if (ProxDetectorS(8.0, playerid, giveplayerid))

          {

      if(giveplayerid == playerid) { SendClientMessage(playerid, COLOR_GREY, "You cannot Cuff yourself!"); return 1; }

      if(Var[PlayerCuffed][giveplayerid] == 1 || GetPlayerSpecialAction(giveplayerid) == SPECIAL_ACTION_HANDSUP)

      {

          format(string, sizeof(string), "* You were Cuffed by %s, till uncuff.", sendername);

      SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

      format(string, sizeof(string), "* You Cuffed %s, till uncuff.", giveplayer);

      SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

      format(string, sizeof(string), "* %s Hand Cuffs %s, so he wont go anywhere.", sendername ,giveplayer);

      ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);

      GameTextForPlayer(giveplayerid, "~r~Cuffed", 2500, 3);

      TogglePlayerControllable(giveplayerid, 0);

      //ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0);

      //ApplyAnimation(giveplayerid,"ped","cower",1,1,0,0,0,0);

          SetPlayerAttachedObject(playerid,0,19418,5,-0.046999,0.042000,0.003000,176.799697,158.099868,-48.799999,1.000000,1.000000,1.000000);

                                  SetPlayerSpecialAction( playerid, SPECIAL_ACTION_CUFFED );

      }

                              else

              {

              SendClientMessage(playerid, COLOR_GREY, "  That player isn't Restrained !");

              return 1;

              }

          }

          else

          {

              SendClientMessage(playerid, COLOR_GREY, "  That player is not near you !");

              return 1;

          }

          }

    }

    else

    {

      SendClientMessage(playerid, COLOR_GREY, "  That player is Offline !");

      return 1;

    }

    }

    else

    {

    SendClientMessage(playerid, COLOR_GREY, "Tu nu esti politist!");

    }

      }

      return 1;[/pawn]

    Si cea de a doua problema este /makeleader cand dau /makeleader 1 adica sa ma fac politist nu imi da team 2 trebuie sa dau eu tot timpul /setteam

    [pawn]

    //=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=makeleader=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

    if(strcmp(cmd, "/makeleader", true) == 0)

    {

        if(IsPlayerConnected(playerid))

        {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SCM(playerid, COLOR_GRAD2, "{B8DBFF}Synthax: /makeleader [playerid/PartOfName] [Number(1-12)]");

    SCM(playerid, COLOR_WHITE, "ID 1 = Police Force, ID 2 = Ambulance, ID 3 = Familia Sindacco, ID 4 = Familia Leone, ID = 5 Presedinte, ID 6 = Hitman, ID 12 = SRI");

    SCM(playerid, COLOR_WHITE, "ID 7 = Scoala de instructori, ID 8 = Familia Forelli, ID 9 = Familia 69 Pier Mobs, ID 10 = Remorcari Auto, ID 11 = Reporterii de stiri");

    return 1;

    }

    new level;

    new d,m,y,h,mi,s;

                getdate(y,m,d);

            gettime(h,mi,s);

    para1 = ReturnUser(tmp),GetPlayerName(para1, giveplayer, sizeof(giveplayer));

    tmp = strtok(cmdtext, idx);

    level = strval(tmp);

    if(level > 14 || level < 1) { SCM(playerid, COLOR_GREY, "  Dont go below number 1, or above number 13!"); return 1; }

    if (PlayerInfo[playerid][pAdmin] >= 5)

    {

        if(IsPlayerConnected(para1))

        {

            if(para1 != INVALID_PLAYER_ID)

            {

                if(PlayerInfo[para1][pLeader] > 0||PlayerInfo[para1][pMember] > 0 || PlayerInfo[para1][pFMember] < 255)

                {

                    SCM(playerid, COLOR_GREY, "Acest jucator este intr-o factiune ori este lider deja. Foloseste /unleader.");

                    return 1;

                }

    GetPlayerName(para1, giveplayer, sizeof(giveplayer));

    PlayerInfo[para1][pLeader] = level;

    PlayerInfo[para1][pRank] = 6;

    SpawnPlayer(para1);

    format(string, sizeof(string), "  You have been promoted to Leader to your requested Faction by Admin %s", sendername);

    SCM(para1, COLOR_LIGHTBLUE, string);

    format(string, sizeof(string), "  You have given %s control to run Faction Number %d.", giveplayer,level);

    SCM(playerid, COLOR_LIGHTBLUE, string);

                            if(level == 1)

    {

    PlayerInfo[para1][pChar] = 265;

    } //Police Force

    else if(level == 2)

    {

    PlayerInfo[para1][pChar] = 228;

    } //Fire/Ambulance

    else if(level == 3)

    {

    PlayerInfo[para1][pChar] = 112;

    } //Familia Sindacco

    else if(level == 4)

    {

    PlayerInfo[para1][pChar] = 270;

    } //Familia Leone

    else if(level == 5)

    {

    PlayerInfo[para1][pChar] = 17;

    } //Mayor

    else if(level == 6)

    {

    PlayerInfo[para1][pChar] = 294;

    } //Hitmans

    else if(level == 7)

    {

    PlayerInfo[para1][pChar] = 153;

    } //Taxi Cab Company

    else if(level == 8)

    {

    PlayerInfo[para1][pChar] = 113;

    } //Ballas

    else if(level == 9)

    {

    PlayerInfo[para1][pChar] = 115;

    } //Grove

    else if(level == 10)

    {

    PlayerInfo[para1][pChar] = 268;

    } //Tow Car Comany

    else if(level == 11)

    {

    PlayerInfo[para1][pChar] = 147;

    } //Reporterii de stiris

    else if(level == 12)

    {

    PlayerInfo[para1][pChar] = 295;

    } //S.R.I

    else if(level == 13)

    {

                                PlayerInfo[para1][pChar] = 285;

    } //Garda nationala

    else if(level == 14)

    {

                                PlayerInfo[para1][pChar] = 289;

                            } //civil

        gTeam[para1] = 10;

        PlayerInfo[para1][pTeam] = 10;

        SetPlayerSkin(para1, PlayerInfo[para1][pChar]);

                    format(string, sizeof(string), "{6790BE}[AdmWarning]{FFFFFF}: %s i-a dat leader[%d] lui %s {FF0000}!",sendername,level,giveplayer);

                    ABroadCast(COLOR_LIGHTRED,string, 5);

    }

    }//not connected

    }

    else

    {

    SCM(playerid, COLOR_WHITE, "{FFFFCC}Tu nu ai voie sa folosesti aceasta comanda.");

    }

    }

    return 1;

    }[/pawn]

  7. Ce trbuie sa fac in situatia asta sa sterg din GM tot ce de la erorile astea?

    [20:52:08]    Error: Function not registered: 'SSCANF_Init'

    [20:52:08]    Error: Function not registered: 'SSCANF_Join'

    [20:52:08]    Error: Function not registered: 'SSCANF_Leave'

    [20:52:08]    Error: Function not registered: 'Streamer_CallbackHook'

    [20:52:08]    Error: Function not registered: 'Streamer_UpdateEx'

    [20:52:08]    Error: Function not registered: 'IsValidDynamic3DTextLabel'

    [20:52:08]    Error: Function not registered: 'DestroyDynamic3DTextLabel'

    [20:52:08]    Error: Function not registered: 'sscanf'

    [20:52:08]    Error: Function not registered: 'CreateDynamic3DTextLabel'

    [20:52:08]    Error: Function not registered: 'CreateDynamicPickup'

    [20:52:08]    Error: Function not registered: 'CreateDynamicObject'

    [20:52:08]    Error: Function not registered: 'CreateDynamicMapIcon'

    [20:52:08]    Error: Function not registered: 'DestroyDynamicPickup'

    [20:52:08]    Error: Function not registered: 'DestroyDynamicObject'

    [20:52:08]    Error: Function not registered: 'Streamer_SetFloatData'

    [20:52:08]    Error: Function not registered: 'UpdateDynamic3DTextLabelText'

    [20:52:08]    Error: Function not registered: 'WP_Hash'

    [20:52:08]    Error: Function not registered: 'AttachDynamicObjectToVehicle'

    [20:52:08]    Error: Function not registered: 'MoveDynamicObject'

    [20:52:08]    Error: Function not registered: 'SetDynamicObjectRot'

    [20:52:08]    Error: Function not registered: 'GetDynamicObjectPos'

    [20:52:08]    Error: Function not registered: 'GetDynamicObjectRot'

    [20:52:08]    Error: Function not registered: 'EditDynamicObject'

    [20:52:08]    Error: Function not registered: 'DestroyDynamicMapIcon'

    [20:52:08]    Error: Function not registered: 'IsValidDynamicPickup'

    [20:52:08]    Error: Function not registered: 'SetDynamicObjectPos'

    [20:52:08] Script[gamemodes/UGRP.amx]: Run time error 19: "File or function is not found"

    [20:52:08] Number of vehicle models: 0

  8. am erori si warning la o comanda

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(14036) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(15361) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(15408) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(15440) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(15602) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(15637) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(15671) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(15711) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(16062) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(16104) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(23492) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(23542) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(23869) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(24010) : warning 219: local variable "playa" shadows a variable at a preceding level

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26208) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26252) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26254) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26257) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26260) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26263) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26264) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26266) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26268) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26270) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26273) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26275) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26278) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26281) : error 055: start of function body without function header

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26290) : error 021: symbol already defined: "ABroadCast"

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26292) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26297) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26302) : error 010: invalid function or declaration

    C:\Users\Stefan\Desktop\My Server\gamemodes\gf.pwn(26304) : warning 203: symbol is never used: "playa"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    17 Errors.

    [pawn]if(strcmp(cmd, "/respawn", true) == 0) //By

    {

        if(IsPlayerConnected(playerid))

    {

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

        SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: /respawn [playerid/PartOfName]");

    return 1;

    }

    new playa;

      playa = ReturnUser(tmp);

      if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)

    {

    if(IsPlayerConnected(playa))

        {

        if(playa != INVALID_PLAYER_ID)

        {

                            if(PlayerInfo[playa][pJailed] == 1)

                            {

                                SendClientMessage(playerid,COLOR_GREY,"  You can`t use this command on that player because is in jail !");

                                return 1;

                            }

                            if(WantedLevel[playa] >= 1)

                            {

                                SendClientMessage(playerid,COLOR_GREY,"  You can`t use this command on that player, is currently Wanted !");

                                return 1;

                            }

      //if(SpawnChange[playerid])

    {

    GetPlayerName(playa, giveplayer, sizeof(giveplayer));

    SpawnPlayer(playa);

    GetPlayerName(playerid, sendername, sizeof(sendername));

    format(string, sizeof(string), "* You have respawned player %s.", giveplayer);

    SendClientMessage(playerid, COLOR_LIGHTRED, string);

        format(string, sizeof(string), "* You have been respawned by Admin %s.", sendername);

    SendClientMessage(playa, COLOR_LIGHTRED, string);

    format(string, 128, "{FF2C00}AdmWarning: {33FF33}%s {FFFFFF}has respawned the player {33FF33}%s {FF2C00}(/respawn).", sendername, giveplayer);

    ABroadCast(COLOR_YELLOW,string,1);

    HBroadCast(COLOR_YELLOW,string);

    return 1;

            }

    }

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GRAD1, " Nu ai voie sa folosesti aceasta comanda!");

    }

    }

    return 1;

    }[/pawn]

  9. am aceste erori

    [pawn]warning 201: redefinition of constant/macro (symbol "COLOR_RED")

    C:\Users\Stefan\Desktop\x\gamemodes\x.pwn(15300) : error 033: array must be indexed (variable "cmd")

    C:\Users\Stefan\Desktop\x\gamemodes\x.pwn(15375) : error 033: array must be indexed (variable "tmp")[/pawn]

  10. tot la fel face si nu stiu de ce.poate pe host nu mai face la fel nu pot sa-mi dau seama ce are.

    masina 173 e o masina de la DMV cand dau /acreatecar si se creeaza masina 174 si dau rr la svse face masina aia de la DMV personala si cea care am creat-o se face cu id1 si cea care avea id1 se face id 173

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