Jump to content

Ale Alecs

Membru
  • Posts

    19
  • Joined

  • Last visited

Posts posted by Ale Alecs

  1. Ma numesc: McShooteR

    Problema intalnita:Nu imi merge jobul Trucking /sellprods /load /buyprods
    Poze :http://postimg.org/gallery/e3ysy068/04f693aa/

    Am incercat sa rezolv ceva dar nu a mers

    if(strcmp(cmd, "/load", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                new tmpcar = GetPlayerVehicleID(playerid);
                if(!IsATruck(tmpcar))
                {
                    GameTextForPlayer(playerid, "~r~You are not in a delivery truck", 5000, 1);
                    return 1;
                }
                format(string, sizeof(string), "Products: %d.", PlayerInfo[playerid][pTruckLoad]);
                SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
            }
            return 1;
        }
    
        if(strcmp(cmd, "/buyprods", true) == 0)
        {
            if(IsPlayerConnected(playerid))
            {
                new tmpcar = GetPlayerVehicleID(playerid);
                if(PlayerToPoint(70.0, playerid, 2468.4919,-2092.9902,13.5469))
                {
                    if(IsATruck(tmpcar))
                    {
                        if(PlayerInfo[playerid][pTruckLoad] < 200)
                        {
                            tmp = strtok(cmdtext, idx);
                            if(!strlen(tmp))
                            {
                                SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /buyprods [1-200]");
                                return 1;
                            }
                            new amount = strval(tmp);
                            if(amount < 1 || amount > 200) { SendClientMessage(playerid, COLOR_GREY, "   Can't buy less then 1 Product or more then 200 !"); return 1; }
                            new cost = amount*50;
                            if(GetPlayerMoney(playerid) > cost)
                            {
                                PlayerInfo[playerid][pTruckLoad] += amount;
                                format(string, sizeof(string), "You bought %d Products for $%d.", amount,cost);
                                SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
                                SafeGivePlayerMoney(playerid,-cost);
                                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
                        {
                            SendClientMessage(playerid, TEAM_GROVE_COLOR, "You cannot carry more then 200 products at a time");
                            return 1;
                        }
                    }
                    else
                    {
                        SendClientMessage(playerid, TEAM_GROVE_COLOR, "This Vehicle does not deliver Products.");
                        return 1;
                    }
                }
            }
            return 1;
        }
    
        if(strcmp(cmd, "/sellprods", true) == 0)
        {
            new cashmade;
            new tmpcar;
            if(IsPlayerConnected(playerid))
            {
                tmpcar = GetPlayerVehicleID(playerid);
                if(!IsATruck(tmpcar))
                {
                    GameTextForPlayer(playerid, "~r~You are not in a delivery truck", 5000, 1);
                    return 1;
                }
                if(PlayerInfo[playerid][pTruckLoad] == 0)
                {
                    GameTextForPlayer(playerid, "~r~Truck is empty, return to the stock house", 5000, 1);
                    format(string, sizeof(string), "Products: %d.", PlayerInfo[playerid][pTruckLoad]);
                    SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
                    return 1;
                }
                for(new i = 0; i < sizeof(BizzInfo); i++)
                {
                    if (IsPlayerInRangeOfPoint(playerid, 10,BizzInfo[bEntranceX], BizzInfo[bEntranceY], BizzInfo[bEntranceZ]))
                    {
                        //printf("Found House :%d",i);
                        for(new l = PlayerInfo[playerid][pTruckLoad]; l > 0; l--)
                        {
                            if(BizzInfo[bProducts] == BizzInfo[bMaxProducts])
                            {
                                GameTextForPlayer(playerid, "~r~Our stores are full", 5000, 1);
                                format(string, sizeof(string), "Cash Earned $%d.", cashmade);
                                SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
                                format(string, sizeof(string), "Products: %d.", PlayerInfo[playerid][pTruckLoad]);
                                SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
                                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                return 1;
                            }
                            if(BizzInfo[bPriceProd] > BizzInfo[bTill])
                            {
                                GameTextForPlayer(playerid, "~r~We Cant Afford The Deal", 5000, 1);
                                format(string, sizeof(string), "Cash Earned $%d.", cashmade);
                                SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
                                format(string, sizeof(string), "Products: %d.", PlayerInfo[playerid][pTruckLoad]);
                                SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
                                PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
                                return 1;
                            }
    
  2. Problema intalnita (descriere): nu mi se compliaza GM-UL

    Ero(area / rile) / warning-(ul / urile): 

    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(198) : error 017: undefined symbol "ret_mempcy"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22079) : error 017: undefined symbol "strtok"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22079) : error 033: array must be indexed (variable "cmd")
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22129) : error 017: undefined symbol "strtok"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22129) : error 033: array must be indexed (variable "tmp")
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22195) : error 017: undefined symbol "strtok"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22195) : error 033: array must be indexed (variable "tmp")
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22336) : error 017: undefined symbol "strtok"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22336) : error 033: array must be indexed (variable "tmp")
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22370) : error 017: undefined symbol "strtok"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22370) : error 033: array must be indexed (variable "tmp")
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22506) : error 017: undefined symbol "strtok"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22506) : error 033: array must be indexed (variable "tmp")
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22578) : error 017: undefined symbol "strtok"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22578) : error 033: array must be indexed (variable "tmp")
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22603) : error 017: undefined symbol "strtok"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22603) : error 033: array must be indexed (variable "tmp")
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22610) : error 017: undefined symbol "strtok"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22610) : error 033: array must be indexed (variable "tmp")
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22636) : error 017: undefined symbol "strtok"
    C:UsersAlecsAppDataLocalTempfz3temp-1CG.pwn(22636) : error 033: array must be indexed (variable "tmp")
    

    Liniile de cod / sursa / script-ul: Sursa : -

    Imagini / Video (optional):

    Ati incercat sa rezolvati singur?: Da dar nu reusesc

  3. Astea cred ca ar trebuii sa fie:

        NFScar = AddStaticVehicleEx(560,1658.80004883,-1693.90002441,20.29999924,90.00000000,19,19,0); //Sultan
        NFScar1 = AddStaticVehicleEx(562,1673.90002441,-1706.69995117,20.20000076,0.00000000,19,19,0); //Elegy
        NFScar2 = AddStaticVehicleEx(559,1644.40002441,-1701.19995117,20.20000076,180.00000000,19,19,0); //Jester
        NFScar3 = AddStaticVehicleEx(565,1659.30004883,-1721.69995117,20.20000076,270.00000000,19,19,0); //Flash
    
     
        NFScar4 = AddStaticVehicle(561,1672.2181,-1720.3198,20.2977,51.2457,19,19); // Stratum
        NFScar5 = AddStaticVehicle(558,1672.3656,-1694.8906,20.3175,138.5390,19,19); // Uranus
  4. Descriere:Pe server sunt 16 factiuni (tin sa va anunt ca numele clanurilor exista si in realitate):

    Politia Romana
    Serviciul Roman de Informati
    Armata Romana
    S.M.U.R.D.
    Rromi
    Taxi Company
    School Instructor
    Hitman
    News Reporter
    Remorcari Auto
    Clanul Sadoveanu
    Clanul Capone
    Clanu Duduianu
    Clanul Corsicanu
    Clanul Tobosaru
    Clanul Camataru


    Avem o terasa langa gara SF, unde iti poti invita prietena la un suc.
    Pentru a face jocul si mai apropiat de realitate am creat puncte de penalizare si supendarea permisului auto pentru 3 luni (payday) iar daca se da un test se va primi inapoi automat permisul dupa 1 luna (payday).
    Politia poate sa puna blocaje, sa verifice centura jucatorilor, arata insigna.
    Mapa este foarte mult editata.

    - Masina personala o inregistrezi la primarie, iti iei ce numere vrei... care vor aparea pe loc.
    - Vama ls -sf, pasaportul il obtii facand cerere la primarie si ridicandu-l de la sectia de politie.
    - Daca nu ai casa... acum poti dormi cu chirie sau la un hotel... conditi foarte bune (/sleep, /heal, cat timp ai inchiriat o camera la hotel tot acolo vei fi respamat).
    - Fiecare jucator poate avea 1 masina personala, 1 motocicleta personala si 1 avion/barca personala.
    - Avem 7 NPC care transporta oameni ( 3 pe autobuze, 2 pe tren si 2 pe avion), in fiecare statie ti se spune numele statiei si ce statie urmeaza, bineinteles in masinile de transport public nu te poti urca fara bilet.
    - Sistemul de register/login rescris de la 0.
    - Atentie! Totul se salveaza in tabele din baza de date MySql!
    - Garaje

    Serverul beneficiaza de:
    Masini Personale
    Barci Personale
    Heli Personale
    Moto Personale

    Yard:

    http://imgur.com/a/wPDm8

    Inmatricularea masinilor cu numar personalizat:

    http://i.imgur.com/j96AV.png

    Event Arena:

    http://imgur.com/a/55B1W#0

     

    Acest server cere Baza de date MySql

    Si de alte lucruri interesante !
    Download: http://www.girlshare.ro/4423425.6
    Download 2: http://www.sendspace.com/file/02df1p
    Marime: 9.2MB

  5. [19:04:21] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
    
    [19:04:21] >> mysql_query( Connection handle: 1 )
    
    [19:04:21] CMySQLHandler::Query() - You cannot call this function now. (Reason: Connection is dead)
    
    [19:04:21] >> mysql_real_escape_string( Connection handle: 1 )
    
    
  6. Problemă întâlnită (descriere): Nu imi inregistreaza conturile 
    Ero(area / rile) / warning-(ul / urile): Nu le gasesc
    Liniile de cod / sursa / script-ul: 

    		if(dialogid == 12345)
    		{
    		    if(!response)
                {
                    Kick(playerid);
                    return 1;
                }
    		    if(strlen(inputtext))
    		    {
    				GetPlayerName(playerid, sendername, sizeof(sendername));
    				new sqlaccountexists = MySQLCheckAccount(sendername);
    				if (sqlaccountexists != 0)
    				{
    				    SendClientMessage(playerid, COLOR_YELLOW, "Acest nume este deja luat, te rog alege altul.");
    					return 1;
    				}
    				new tmppass[64];
    				//if(strfind(inputtext, "|", true) != -1)
    				new ok = 1;
    				for(new i=0;i<strlen(inputtext);i++)
    				{
    				    if(!IsALetter(inputtext))
    				        ok = 0;
    				}
    				if(ok == 0)
    				{
    				    gPlayerAccount[playerid] = 0;
    		 			new regstring[128];
    					new regname[64];
    				    GetPlayerName(playerid,regname,sizeof(regname));
    					format(regstring,sizeof(regstring),"Bine ai venit, %snNu ai cont.nTe rog inregistreaza-te:",regname);
    					ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Register","Exit");
    				}
    				else
    				{
    					strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
    					OnPlayerRegister(playerid,tmppass);
    				}
    			}
    			else
    			{
     				new regstring[128];
    				new regname[64];
    				GetPlayerName(playerid,regname,sizeof(regname));
    				format(regstring,sizeof(regstring),"Bine ai venit, %snNu Ai Cont.nTe Rog Inregistreaza-te:",regname);
    				ShowPlayerDialog(playerid,12345,DIALOG_STYLE_PASSWORD,"Register",regstring,"Register","Exit");
    

    Imagini / Video (optional):
    Aţi încercat să rezolvaţi singur?: Am incercat sa bag alt dialog cu login dupa ce ma inregistrez pe asta care l-am bagat imi apare tot ala dinainte si nu ma lasa

  7. Tocmai ce am luat un gm dupa net si am intampinat urmatoarea problema:

    -Conturile sunt sterse si s-au salvat masinile personale pe numele lor

    -Nu gasesc FS de masini personale

    -In scriptfiles am cars.txt care contine masinile personale + numele playerilor care au masinile respective cumparate.

    -Si carsCFG care contine tot masini personale si numele playerilor care au masina

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