Jump to content

WeeD

Membru
  • Posts

    25
  • Joined

  • Last visited

    Never

Posts posted by WeeD

  1. Hey Sa:Mp

    Astazi am sa va prezint un FS proaspat

    GMX v1.0

    [download]http://www.solidfiles.com/d/685a2f890a/GMX.rar[/download]

    Este un simplu FS care cu ajutorul comenzii /restart se da restart la server fara server closed connection

    Obs: adminul trebuie sa fie conectat la rcon

    Astept Comenturi

    sa_mp_003.png

    sa_mp_004.png

    sa_mp_005.png

  2. Poti face ceva in genul

    [pawn]

    if (strcmp(cmdtext, "/radioall", true) ==0)

    {

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

            {

            PlayAudioStreamForAll(playerid, "Aici pui un radio care il vrei");

            SendClientMessageToAll(playerid, COLOR_RED,"Radio pornit");

            return 1;

    }

    [/pawn]

  3. Faci un simplu timer pentru repair

    Si la aia dupa ce o paraseste playeru

    faci ceva in genu

    [pawn]

    public OnPlayerExitVehicle(playerid, vehicleid)

    {

        SetVehicleToRespawn(GetPlayerVehicleID(playerid));

        return 1;

    }

    [/pawn]

    Timerul l-ai putea face astfel

    [pawn]

    SetTimerEx("Autorepair",600,true,"d",playerid);

    forward Autorepair(playerid);

    public Autorepair(playerid)

    {

      if(IsPlayerInAnyVehicle(playerid))

      {

      new Float:health,vehicleid;

      vehicleid = GetPlayerVehicleID(playerid);

      GetVehicleHealth(vehicleid,health);

      if(health <250)

      {

      SetVehicleHealth(vehicleid,1000);

      }

      }

    }

    [/pawn]

  4. Pune comanda asta

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

    {

        if(IsPlayerConnected(playerid))

        {

            if(GetPlayerMoney(playerid) < 1)

    {

        SendClientMessage(playerid, COLOR_GREY, "  You dont have enough money with you !");

        return 1;

    }

    new gun;

    new gunid[16];

    new gunstring1[128];

    new gunstring2[128];

    new gunstring3[128];

    new gunstring4[128];

    new gunstring5[128];

    new infostring[128];

    new guncharge;

    new ammocharge;

    new location = PlayerInfo[playerid][pLocal];

    if(location == 99 || location == 100 || location == 102 || PlayerInfo[playerid][pVirWorld] == 96)

    {

        if(BizzInfo[location-99][bProducts] <= 0)

        {

            GameTextForPlayer(playerid, "~r~Out Of Stock", 5000, 1);

    return 1;

        }

    new mod = 100;

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    format(string, sizeof(string), "{D580FE}Foloseste:{FFFFFF} /buygun [gunname] [ammoamount]");

    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");

    SendClientMessage(playerid, COLOR_WHITE,"*** Guns & Ammo ***");

    SendClientMessage(playerid, COLOR_GRAD2,string);

    format(gunstring1, 128, "Weapons: parachute ($%d) golfclub ($%d) nightstick ($%d) baseballbat ($%d) shovel ($%d) poolcue ($%d)",

    GunPrice[0][0]/100*mod,GunPrice[1][0]/100*mod,GunPrice[2][0]/100*mod,GunPrice[3][0]/100*mod,GunPrice[4][0]/100*mod,GunPrice[5][0]/100*mod,GunPrice[6][0]/100*mod);

    SendClientMessage(playerid, COLOR_GRAD3, gunstring1);

    format(gunstring2, 128, "Weapons: purpledildo ($%d) whitedildo ($%d) longwhitedildo ($%d) whitedildo2 ($%d) flowers ($%d) cane",

    GunPrice[7][0]/100*mod,GunPrice[8][0]/100*mod,GunPrice[9][0]/100*mod,GunPrice[10][0]/100*mod,GunPrice[11][0]/100*mod,GunPrice[12][0]/100*mod);

    SendClientMessage(playerid, COLOR_GRAD3, gunstring2);

    format(gunstring3, 128, "Weapons: sdpistol ($%d) deagle ($%d) mp5 ($%d)",

    GunPrice[13][0]/100*mod,GunPrice[14][0]/100*mod,GunPrice[15][0]/100*mod,GunPrice[16][0]/100*mod,GunPrice[17][0]/100*mod,GunPrice[18][0]/100*mod);

    SendClientMessage(playerid, COLOR_GRAD3, gunstring3);

    format(gunstring4, 128, "Weapons: shotgun ($%d) ak47 ($%d) m4 ($%d) rifle ($%d)",

    GunPrice[19][0]/100*mod,GunPrice[20][0]/100*mod,GunPrice[21][0]/100*mod,GunPrice[22][0]/100*mod,GunPrice[23][0]/100*mod,GunPrice[24][0]/100*mod);

    SendClientMessage(playerid, COLOR_GRAD3, gunstring4);

    format(gunstring5, 128, "Weapons: pistolammo ($%d) shotgunammo ($%d) smgammo ($%d) assaultammo ($%d) rifleammo ($%d)",

    GunPrice[25][0],GunPrice[26][0],GunPrice[27][0],GunPrice[28][0],GunPrice[29][0]);

    SendClientMessage(playerid, COLOR_GRAD3, gunstring5);

    SendClientMessage(playerid, COLOR_GREEN,"_______________________________________");

    return 1;

    }

    strmid(gunid, tmp, 0, strlen(cmdtext), 255);

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    format(string, sizeof(string), "{D580FE}Foloseste:{FFFFFF} /buygun [gunname] [ammoamount]");

    return 1;

    }

    new ammo = strval(tmp);

    if(ammo < 1 || ammo > 999) { SendClientMessage(playerid, COLOR_GREY, "  Ammo ammount not lower then 1 or higher then 999 !"); return 1; }

    if (strcmp(gunid, "parachute", true, strlen(gunid)) == 0)

    {

    gun = 46;

    guncharge = GunPrice[0][0]/100*mod;

    ammocharge = 0;

    }

    else if (strcmp(gunid, "golfclub", true, strlen(gunid)) == 0)

    {

    gun = 2; guncharge = GunPrice[1][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 2; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "nightstick", true, strlen(gunid)) == 0)

    {

    gun = 3; guncharge = GunPrice[2][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 3; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "baseballbat", true, strlen(gunid)) == 0)

    {

    gun = 5; guncharge = GunPrice[4][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 5; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "shovel", true, strlen(gunid)) == 0)

    {

    gun = 6; guncharge = GunPrice[5][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 6; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "poolcue", true, strlen(gunid)) == 0)

    {

    gun = 7; guncharge = GunPrice[6][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 7; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "purpledildo", true, strlen(gunid)) == 0)

    {

    gun = 10; guncharge = GunPrice[7][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 10; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "whitedildo", true, strlen(gunid)) == 0)

    {

    gun = 11; guncharge = GunPrice[8][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 11; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "longwhitedildo", true, strlen(gunid)) == 0)

    {

    gun = 12; guncharge = GunPrice[9][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 12; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "whitedildo2", true, strlen(gunid)) == 0)

    {

    gun = 13; guncharge = GunPrice[10][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 13; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "flowers", true, strlen(gunid)) == 0)

    {

    gun = 14; guncharge = GunPrice[11][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 14; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "cane", true, strlen(gunid)) == 0)

    {

    gun = 15; guncharge = GunPrice[12][0]/100*mod; ammocharge = 0;

    PlayerInfo[playerid][pGun1] = 15; PlayerInfo[playerid][pAmmo1] = 1;

    }

    else if (strcmp(gunid, "sdpistol", true, strlen(gunid)) == 0)

    {

    gun = 23; guncharge = GunPrice[13][0]/100*mod; ammocharge = GunPrice[25][0]*ammo;

    PlayerInfo[playerid][pGun2] = 23; PlayerInfo[playerid][pAmmo2] = ammo;

    }

    else if (strcmp(gunid, "deagle", true, strlen(gunid)) == 0)

    {

    gun = 24; guncharge = GunPrice[15][0]/100*mod; ammocharge = GunPrice[25][0]*ammo;

    PlayerInfo[playerid][pGun2] = 24; PlayerInfo[playerid][pAmmo2] = ammo;

    }

    else if (strcmp(gunid, "mp5", true, strlen(gunid)) == 0)

    {

    gun = 29; guncharge = GunPrice[18][0]/100*mod; ammocharge = GunPrice[27][0]*ammo;

    PlayerInfo[playerid][pGun3] = 29; PlayerInfo[playerid][pAmmo3] = ammo;

    }

    else if (strcmp(gunid, "shotgun", true, strlen(gunid)) == 0)

    {

    gun = 25; guncharge = GunPrice[19][0]/100*mod; ammocharge = GunPrice[26][0]*ammo;

    PlayerInfo[playerid][pGun3] = 25; PlayerInfo[playerid][pAmmo3] = ammo;

    }

    else if (strcmp(gunid, "ak47", true, strlen(gunid)) == 0)

    {

    gun = 30; guncharge = GunPrice[22][0]/100*mod; ammocharge = GunPrice[28][0]*ammo;

    PlayerInfo[playerid][pGun4] = 30; PlayerInfo[playerid][pAmmo4] = ammo;

    }

    else if (strcmp(gunid, "m4", true, strlen(gunid)) == 0)

    {

    gun = 31; guncharge = GunPrice[23][0]/100*mod; ammocharge = GunPrice[28][0]*ammo;

    PlayerInfo[playerid][pGun4] = 31; PlayerInfo[playerid][pAmmo4] = ammo;

    }

    else if (strcmp(gunid, "rifle", true, strlen(gunid)) == 0)

    {

    gun = 33; guncharge = GunPrice[24][0]/100*mod; ammocharge = GunPrice[29][0]*ammo;

    PlayerInfo[playerid][pGun4] = 33; PlayerInfo[playerid][pAmmo4] = ammo;

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD6, "ShopKeeper Spune: I have never heard of that weapon.");

    return 1;

    }

    if((guncharge+ammocharge) > GetPlayerMoney(playerid))

    {

    format(infostring, 128, "  You don't have $%d !",guncharge+ammocharge);

    SendClientMessage(playerid, COLOR_GRAD3, infostring);

    return 1;

    }

    if(GetPlayerMoney(playerid) < (guncharge+ammocharge))

    {

        SendClientMessage(playerid, COLOR_GREY, "  Can't afford that !");

        return 1;

    }

    new payout = guncharge + ammocharge;

    format(infostring, 128, "You have purchased %s with %d ammo for $%d",gunid,ammo,payout);

    SendClientMessage(playerid, COLOR_GRAD3, infostring);

    if(location == 102 && IsACop(playerid)) { }

    else { GivePlayerMoney(playerid, - payout); }

    BizzInfo[location-99][bTill] += payout;

    ExtortionBiz(location-99, payout);

    BizzInfo[location-99][bProducts]--;

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

    GivePlayerWeapon(playerid, gun, ammo);

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

    format(string, sizeof(string), "%s bought weapons for $%d at biz %d", sendername, payout, location-99);

    }

    else

    {

        SendClientMessage(playerid, COLOR_WHITE,"You are not in a store.");

    return 1;

    }

    }

    return 1;

    }[/pawn]

    Doar ca nu are dialog

    Si vezi ca comanda ta adica /buygun este defapt tasta Y

  5. Buna ziua. Am descarcat gamemode-ul Gamelife Godfather al lui Darksone si am cateva probleme cu el:

    -Cand inchiriez o masina sau dau vehslap iei freeze automat

    -Nu poti intra in Binco

    -Teritoriile de pe harta au multe zone albe..Sunt un teritoriu da, unu ba. http://postimg.org/image/vxcppr8tv/117e9615/

    Va rog ajutor

    -1-

    Ori nu mai sunt in stock ori faci asa

    Te duci la /rentacar sau cum e comanda

    Si scrii TogglePlayerControllable(playerid,1);

    Daca scriee ..(playerid,0)

    -2-

    Binco este clothes nu?

    Te duci in fata lui

    Faci un pick-up si un 3D Text

    si o comanda gen /enterbinco si scrii coordonatele interiorului binco in comanda

    -3-

    Poate asa trebuie sa fie

  6. Uite pe asta o am eu

    [pawn]

    //----------------------------------[setCrim]-----------------------------------------------

    if(strcmp(cmd, "/suspect", true) == 0 || strcmp(cmd, "/su", true) == 0)

        {

            if(IsPlayerConnected(playerid))

            {

                tmp = strtok(cmdtext, idx);

                if(!strlen(tmp))

                {

                    SendClientMessage(playerid, COLOR_GRAD2, "{D580FE}USAGE:{FFFFFF}: /(su)spect [playerid/PartOfName] [wantedlevel] [reason]");

                    return 1;

                }

                new playa;

                new wanted;

                playa = ReturnUser(tmp);

                tmp = strtok(cmdtext, idx);

                wanted = strval(tmp);

                if (IsACop(playerid))

                {

                    if(IsPlayerConnected(playa))

                    {

                        if(playa != INVALID_PLAYER_ID)

                        {

                            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, "{D580FE}USAGE:{FFFFFF}: /(su)spect [playerid/PartOfName] [wlevel] [reason]");

                                return 1;

                            }

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

                            {

                                SendClientMessage(playerid, COLOR_WHITE, "  You can't suspect cops!");

                                return 1;

                            }

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

    {

    SendClientMessage(playerid, COLOR_WHITE, "  This player is already in Jail!");

    return 1;

    }

                            if(wanted > 10)

                            {

                                SendClientMessage(playerid, COLOR_WHITE, "  Wanted level must be between 1 and 10 !");

                                return 1;

                            }

                            if(wanted <= 0)

                            {

                                SendClientMessage(playerid, COLOR_WHITE, "  Wanted level must be between 1 and 10 !");

                                return 1;

                            }

    new check = WantedLevel[playa] + wanted;

    if(check > 10)

    {

                                SendClientMessage(playerid, COLOR_WHITE, "  You went over the wanted level limit of 10 !");

                                return 1;

                            }

                            new string1[128];

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

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

                            WantedLevel[playa] += wanted;

                            WantedPoints[playa] += wanted*2;

                            format(string, sizeof(string), "You've commited a Crime ( %s ). Reporter: %s.",result,sendername);

                            SendClientMessage(playa, COLOR_LIGHTRED, string);

    if(PlayerInfo[playa][pClubMember] == 1 || PlayerInfo[playa][pClubLeader] == 1)

    {

    new vehicle;

    vehicle = GetPlayerVehicleID(playa);

    if(IsAnNFSCar(vehicle))

    {

    GiveBounty(playa, 1000);

    SCM(playerid, COLOR_DNB, "[NFS Club]Ai primit 1.000 Bounty Points pentru ca ai primit Wanted");

    }

    }

    else if(PlayerInfo[playa][pClubMember] == 2 || PlayerInfo[playa][pClubLeader] == 2)

    {

    new vehicle;

    vehicle = GetPlayerVehicleID(playa);

    if(IsAnNRGCar(vehicle))

    {

    GiveBounty(playa, 1000);

    SCM(playerid, COLOR_DNB, "[NRG Club]Ai primit 1.000 Bounty Points pentru ca ai primit Wanted");

    }

    }

                            format(string1, sizeof(string1), "Current Wanted Level: %d", WantedLevel[playa]);

                            SendClientMessage(playa, COLOR_YELLOW, string1);

                            for(new i = 0; i <= MAX_PLAYERS; i++)

                            {

                                if(IsPlayerConnected(i))

                                {

                                    if(PlayerInfo[pMember] == 1||PlayerInfo[pLeader] == 1||PlayerInfo[pMember] == 2||PlayerInfo[pLeader] == 2||PlayerInfo[pMember] == 3||PlayerInfo[pLeader] == 3)

                                    {

                                        format(string, sizeof(string), "HQ: All Units APB: Reporter: %s",sendername);

                                        SendClientMessage(i, TEAM_BLUE_COLOR, string);

                                        format(string, sizeof(string), "HQ: Crime: %s, Suspect: %s, WantedLevel: %d",result,giveplayer,WantedLevel[playa]);

                                        SendClientMessage(i, TEAM_BLUE_COLOR, string);

                                    }

                                }

                            }

                        }

                    }

                }

                else

                {

                    SendClientMessage(playerid, COLOR_WHITE, "You are not a Cop !");

                }

            }

            return 1;

        }

    [/pawn]

  7. Pune asta

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

    {

        if(IsPlayerConnected(playerid))

        {

        if(PlayerInfo[playerid][pJob] != 2)

        {

            SendClientMessage(playerid, COLOR_GREY, "  You are not a Lawyer!");

            return 1;

        }

        if(PlayerInfo[playerid][pLawSkill] >= 401)

        {

            ApprovedLawyer[playerid] = 1;

        }

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD2, "{D580FE}Foloseste:{FFFFFF} /free [playerid/PartOfName] [price]");

    return 1;

    }

    new money;

    giveplayerid = ReturnUser(tmp);

    tmp = strtok(cmdtext, idx);

    if(!strlen(tmp)) { return 1; }

    money = strval(tmp);

    if(money < 1 || money > 30000) { SendClientMessage(playerid, COLOR_GREY, "  Price not lower then 1, or above 30000!"); return 1; }

                if(IsPlayerConnected(giveplayerid))

                {

                    if(giveplayerid != INVALID_PLAYER_ID)

                    {

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

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

    {

                          if(PlayerToPoint(3, playerid,249.2007,67.5946,1003.6406))

      {

                              if(PlayerInfo[giveplayerid][pJailTime] > 1800)

              {

              SendClientMessage(playerid, COLOR_GRAD1, "  Player Jail Time is More than 1800!");

              return 1;

                              }

      GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));

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

      format(string, sizeof(string), "* You offerd %s to get out of jail for $%d.", giveplayer, money);

      SendClientMessage(playerid, COLOR_LIGHTBLUE, string);

      format(string, sizeof(string), "* Lawyer %s wants to get you out of jail for $%d, (type /accept lawyer2) to accept.", sendername, money);

      SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);

      LawyerOffer[giveplayerid] = playerid;

      LawyerPrice[giveplayerid] = money;

      }

      else

      {

          SendClientMessage(playerid, COLOR_GREY, "  You`are not in the station PD !");

      }

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "  Player didnt need a Lawyer / Player aint Jailed !");

    }

    }

    }

    else

    {

        SendClientMessage(playerid, COLOR_GREY, "  Acest jucator nu este conectat!");

    }

    }//not connected

    return 1;

    }

  8. Acum imi apare asta:

    D:\Nu se scaneaza\Green World\gamemodes\GHJ.pwn(26869) : error 012: invalid function call, not a valid address

    D:\Nu se scaneaza\Green World\gamemodes\GHJ.pwn(26869) : error 029: invalid expression, assumed zero

    D:\Nu se scaneaza\Green World\gamemodes\GHJ.pwn(26869) : warning 215: expression has no effect

    D:\Nu se scaneaza\Green World\gamemodes\GHJ.pwn(28263) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")

    D:\Nu se scaneaza\Green World\gamemodes\GHJ.pwn(28333) : warning 203: symbol is never used: "NameTimer"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    2 Errors.

    Dami liniile

    26869

    si 28263

    Si la NameTimer la linia 28333 aia poti sa o stergi

    Nu se foloseste niciunde NameTimer

    Si pune asta in D:\Nu se scaneaza\Green World\pawno\includes

    [download]http://www.solidfiles.com/d/2ea52/utils.inc[/download]

  9. Pai da si cand incerc sa definesc playerinfo si restu imi da errori

    Acuma incerc cum ai zis

    Ok:

    C:\DOCUME~1\Pc\Desktop\DarkGFv1.2\pawno\include\SpikeStrip.inc(27) : warning 219: local variable "lights" shadows a variable at a preceding level

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16467) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16479) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16480) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16481) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16482) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16483) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16484) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16485) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16486) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16494) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16510) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16529) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16546) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16556) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16570) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16586) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16621) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16624) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16638) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16645) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16662) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16668) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16671) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16681) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16686) : error 079: inconsistent return types (array & non-array)

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(16691) : error 079: inconsistent return types (array & non-array)

    Si nu au legatura cu reportsystemul

    Daca poti imi trimiti in PM ce iti trebe sa il faci FS

    Up Up Up!!

  10. Salut tuturor

    Am nevoie de ajutorul vostru

    Mai exact la pluginul asta

    [download]http://www.solidfiles.com/d/722e85f297/report_system_taifunx2.rar[/download]

    Este IsPlayerAdmin adica RCON

    Vreau sa fie pAdmin

    Asa mai exact

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

    Dar imi da tot felul de erori

    Ma puteti ajuta?

  11. Hei Sa-Mp.Ro

    Vechiul Ultimate Control Vechicle a suferit un bug pe care nu l-am vazut

    Insa aceasta noua versiune este una buna

    [download]http://www.solidfiles.com/d/c86e226333/ControlV.rar[/download]

    Pentru a accesa controalele vehiculului ve-ti tasta /vcontrol

    Poze:

    sa_mp_008.png

    [img width=500 height=375] sa_mp_009.png

    [img width=500 height=375] sa_mp_010.png

    [img width=500 height=375] sa_mp_011.png

    [img width=500 height=375] sa_mp_012.png

    [img width=500 height=375] sa_mp_015.png

    [img width=500 height=375] sa_mp_016.png

    Nu este FS original

  12. Salut Sa-Mp.Ro

    Astazi am sters din greseala toate include-urile si am adaugat altele,care cred ca sunt vechi

    Am facut un update la un server si mi-a dat eroarea asta

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(55915) : error 017: undefined symbol "SetObjectMaterialText"

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(55922) : error 017: undefined symbol "SetObjectMaterialText"

    C:\Documents and Settings\Pc\Desktop\DarkGFv1.2\gamemodes\gf.pwn(55929) : error 017: undefined symbol "SetObjectMaterialText"

    Iar acestea sunt linile

    stock adtext(string[], adid)

    {

        switch(adid)

        {

            case 0:

            {

                for (new i = 0; i < 12; i++)

                {

                    SetObjectMaterialText(adplakat, string, 0, 90, "Impact", 24, 0, -32256, -16777216, 1);

                }

            }

            case 1:

            {

                for (new i = 12; i < 25; i++)

                {

                    SetObjectMaterialText(adplakat, string, 0, 90, "Impact", 24, 0, -32256, COLOR_WHITE, 1);

                }

            }

            case 2:

            {

                for (new i = 25; i < 38; i++)

                {

                    SetObjectMaterialText(adplakat, string, 0, 90, "Arial", 24, 0, -32256, COLOR_BLUE, 1);

                }

            }

        }

    }

    Cred ca are legatura cu niste panouri pe care le-am facut

        format(AdTxt[0][bAdTxt],64, "{FF0000}DarkGF\n{00FF00}- The GodFather 2014 -");

        format(AdTxt[1][bAdTxt],64, "{FF0000}Puteti dona la ID\n{00FF00}bestboy.4ever");

        format(AdTxt[2][bAdTxt],64, "{FF0000}DarkGF\n{00FF00}-Best Server Ever");

    ialogid == 11103)

            {

            if(response==1)

            {

            if(!strlen(inputtext)) return ShowPlayerDialog (playerid,11103,DIALOG_STYLE_INPUT,"Editeaza","    Linia 1    ","Done","");

            format(AdTxt[adtxtid[playerid]][bAdTxt],256, "%s\n", inputtext);

            ShowPlayerDialog (playerid,11104,DIALOG_STYLE_INPUT,"Editeaza","    Linia 2    ","Done","");

            return 1;

            }

            else

            {

            ShowPlayerDialog (playerid,11103,DIALOG_STYLE_INPUT,"Editeaza","    Linia 1    ","Done","");

            return 1;

            }

            }

            if(dialogid == 11104)

            {

            if(response==1)

      {

            switch (adtxtid[playerid])

            {

            case 0: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FFA500}%s{33AAFF}%s", AdTxt[adtxtid[playerid]][bAdTxt], inputtext);

            case 1: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{04B404}%s{AA3333}%s", AdTxt[adtxtid[playerid]][bAdTxt], inputtext);

            case 2: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FFFFFF}%s{FF9900}%s", AdTxt[adtxtid[playerid]][bAdTxt], inputtext);

            }

            adtext(AdTxt[adtxtid[playerid]][bAdTxt], adtxtid[playerid]);

            ShowPlayerDialog(playerid,11007,DIALOG_STYLE_MSGBOX,"Panori",AdTxt[adtxtid[playerid]][bAdTxt],"Ok","Cancel");

            return 1;

            }

            else

            {

            ShowPlayerDialog (playerid,11104,DIALOG_STYLE_INPUT,"Editeaza","    Linia 2    ","Done","");

            return 1;

            }

            }

            if(dialogid == 11105)

            {

            if(response)

            {

            switch(listitem)

            {

            case 0:

            {

            adtxtid[playerid] = 0;

            format(string, sizeof(string), "Edit\nDefault\nView");

            ShowPlayerDialog(playerid,11006,DIALOG_STYLE_LIST,"Panou tip 1",string,"Next","Close");

            return 1;

            }

            case 1:

            {

            adtxtid[playerid] = 1;

            format(string, sizeof(string), "Edit\nDefault\nView");

            ShowPlayerDialog(playerid,11006,DIALOG_STYLE_LIST,"Panou tip 2",string,"Next","Close");

            return 1;

            }

            case 2:

            {

            adtxtid[playerid] = 2;

            format(string, sizeof(string), "Edit\nDefault\nView");

            ShowPlayerDialog(playerid,11006,DIALOG_STYLE_LIST,"Panou tip 3",string,"Next","Close");

            return 1;

            }

            }

            }

            else

            {

            return 1;

            }

            }

            if(dialogid == 11006)

            {

            if(response)

            {

            switch(listitem)

            {

            case 0:

            {

            ShowPlayerDialog (playerid,11103,DIALOG_STYLE_INPUT,"Edit","    Linia 1    ","Ok","");

            return 1;

            }

            case 1:

            {

            switch (adtxtid[playerid])

            {

            case 0: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FF0000}DarkGF\n{00FF00}- The GodFather 2014 -");

            case 1: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FF0000}Puteti dona la ID\n{00FF00}bestboy.4ever");

            case 2: format(AdTxt[adtxtid[playerid]][bAdTxt],256, "{FF0000}DarkGF\n{00FF00}-Best Server Ever");

            }

            adtext(AdTxt[adtxtid[playerid]][bAdTxt], adtxtid[playerid]);

            return 1;

            }

            case 2:

            {

            ShowPlayerDialog(playerid,11007,DIALOG_STYLE_MSGBOX,"Panou",AdTxt[adtxtid[playerid]][bAdTxt],"Ok","Cancel");

            return 1;

            }

            }

            }

            else

            {

            format(string, sizeof(string), "Panou 1\nPanou 2\nPanou 3");

            ShowPlayerDialog(playerid,11105,DIALOG_STYLE_LIST,"Panouri",string,"Ok","Cancel");

            }

            }

    Aici e o comanda /panouri in care scrii ce sa fie scris pe acele panouri

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