Jump to content

Extremys

Membru
  • Posts

    187
  • Joined

  • Last visited

  • Days Won

    10

Posts posted by Extremys

  1. Acum 29 minute, Bogdy12 a spus:

     error 012: invalid function call, not a valid address
     warning 215: expression has no effect
     error 001: expected token: ";", but found ")"
     error 029: invalid expression, assumed zero
     fatal error 107: too many error messages on one line

     

     

     

     

    code:     FarmCP(playerid) = 0;

    code: FarmCP[playerid] = 0; asa este corect

  2. Acum 2 ore, s4uriK a spus:

    Totul pelaca de la profile.p.php / complaint.p.php / index.p.php
    Uita-te prin aceste 3 php-uri si cauta vulnerabilitatea, nu am sa ti-o spun eu care este, caut-o tu si rezolv-o, doar ti-am spus de unde pleaca totul. 

    O sa ma uit in decursul zilei de maine si o sa revin cu un reply aici.

  3. In ce consta acest script?: Pai in timpul warului cand omori pe cineva in loc in care el a murit se creeaza un pickup si daca intri in el viata creste iar la 100.

    Poze: http://imgur.com/a/eITTL

    Script link:  

     
    1. //salut
    2. //Deci pentru inceput adaugam la inceputul gamemodeului urmatoarea:
    3. new viatawar;
    4. //Acum mergem la OnPlayerDeath si cautam functiile de la war cand un player moare in timpul //warului, nustiu daca toti aveti asa dar va dau ceva sa va fie mai usor de gasit "You have //been killed by" va este mai usor vedeti ca acest mesaj este si la paintball ajunsi acolo //adaugam dupa testu asta defapt dupa SCM(dupa "You have been killed by" exista funcita SCM)
    5. new Float:pPosX, Float:pPosY, Float:pPosZ;
    6. GetPlayerPos(playerid, pPosX, pPosY, pPosZ); //aici sa zic asa retinem coordonatele unde va fi //pusa inima
    7. viatawar = CreatePickup(1240, 2, pPosX, pPosY, pPosZ, -1); //aici am creat inima
    8. //Bun, acum mergem la public OnPlayerPickUpPickup(playerid, pickupid)
    9. //si adaugam urmatoarele
    10. if(pickupid == viatawar)
    11.     {
    12.           SetPlayerHealthEx(playerid, 99); //puteti face sa ii adauge +25 hp sau etc dar //depinde de variabile din gamemode, oricum se pot creea .
    13.           SCM(playerid, -1, "Viata ti-a fost regenerata");
    14.           DestroyPickup(viatawar);
    15.     }
    16. //Am facut acest tutorial din plictiseala.
    17. //Daca am greseli gramaticale 'sorry'.

    Precizari:  L-am facut din plictiseala.

     

    link pastebin: http://pastebin.com/bvUd1FgM

  4. La 02.11.2016 la 8:16, ImTouchk a spus:

    Pot crea forumuri cu platforme ipb

    IPB Nulled poate sa puna oricine pe un forum hostinger.

    pot rezolva, repara si chiar crea sisteme/comenzi.

    Atat?... Un developer are nevoie de persoane in 3RD PARTY TEAM persoane ce fac si sisteme, pot si eu sa fac o comanda gen /help...

    Nu prea recomand daca vreti sa va faceti o comunitate si nu aveti un gamemode stabil.

    "IPB Nulled poate sa puna oricine pe un forum hostinger."

    M-am referit ca ma ocup in totalitate de forum, nu doar urc cu filezzila si instalez stiu ca asta stie oricine.

    "Atat?... Un developer are nevoie de persoane in 3RD PARTY TEAM persoane ce fac si sisteme, pot si eu sa fac o comanda gen /help..."
    Daca tu prin "pot rezolva, repara si chiar crea sisteme/comenzi." intelegi ca m-am referit la comenzi gen /help... las-o asa, rog un admin sa stearca topic, am gasit deja pe cineva caruia ii ofer servici.

  5. 9 hours ago, RespecT said:

    Am scapat de erorii dar degeaba tot nu merge.. dai /shop se cumpara si dupa imi apare ala cu 'Da' sau 'Inapoi' :))

    Arata-mi cum ai tu acum.

    Pune dinou dar asa:
     

    Quote

    if(listitem == 5)
                    {
                        if(PlayerInfo[playerid][pWarns] <= 0)
                        {
                            SendClientMessage(playerid, COLOR_LIGHTRED, "You don't have any warn.");
                            return 1;
                        }
                        if(PlayerInfo[playerid][pPremiumPoints] < 19) return SCM(playerid, COLOR_GREY, "Eroare: Ai nevoie de 20 puncte premium pentru a lua acest produs.");
                        ShowPlayerDialog(playerid, DIALOG_CWARNS, DIALOG_STYLE_MSGBOX, "Shop:", "{FFFFFF}Esti sigur ca vrei sa cumperi Clear Warns?", "Da", "Inapoi");
                    }

    Iar la ondialogresponse 

    Quote

    if(dialogid == DIALOG_CWARNS)
        {
            if(response)
            {       

            

    
    PlayerInfo[playerid][pPremiumPoints] -= 20;
    					Update(playerid, pPremiumPointsx);
    					PlayerInfo[playerid][pWarns] = 0;
    					new str[300],strings[200],name[30],stringss[200];
    					mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Warnings`='0',`PremiumPoints`='%d' WHERE `name`='%s'",PlayerInfo[playerid
    [pPremiumPoints],PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,str,"","");
    					SendClientMessage(playerid, COLOR_YELLOW, "You have cleared your warns! (-20 premium points)");
    					GetPlayerName(playerid, name, sizeof(name));
    					format(strings, sizeof(strings), "/shop: %s cleared his warns.",name);
    					ABroadCast(COLOR_YELLOW,strings,6);
    					mysql_real_escape_string(strings, stringss);
    					mysql_format(SQL,str,sizeof(str), "INSERT INTO `shop_logs` (`playerid`,`Message`) VALUES('%d','%s')",PlayerInfo[playerid][pSQLID],stringss);
    					mysql_tquery(SQL,str,"","");


            }
            return 1;
        }

     

    • Upvote 1
  6. Quote
    
    if(listitem == 5)
    				{
    				    if(PlayerInfo[playerid][pWarns] <= 0)
                        {
    						SendClientMessage(playerid, COLOR_LIGHTRED, "You don't have any warn.");
    						return 1;
    					}
    					if(PlayerInfo[playerid][pPremiumPoints] < 19) return SCM(playerid, COLOR_GREY, "Eroare: Ai nevoie de 20 puncte premium pentru a lua acest produs.");
    					ShowPlayerDialog(playerid, DIALOG_CWARNS, DIALOG_STYLE_MSGBOX, "Shop:", "{FFFFFF}Esti sigur ca vrei sa cumperi Clear Warns?", "Da", "Inapoi");
                      SendClientMessage(playerid, COLOR_YELLOW, "You have cleared your warns! (-20 premium points)");
    					GetPlayerName(playerid, name, sizeof(name));
    					format(strings, sizeof(strings), "/shop: %s cleared his warns.",name);
    					ABroadCast(COLOR_YELLOW,strings,6);
    					mysql_real_escape_string(strings, stringss);
    					mysql_format(SQL,str,sizeof(str), "INSERT INTO `shop_logs` (`playerid`,`Message`) VALUES('%d','%s')",PlayerInfo[playerid][pSQLID],stringss);
    					mysql_tquery(SQL,str,"","");
    				}

    Inlocuieste ce ai tu cu ce am dat eu si definesti DIALOG_CWARNS dupa care te duci iar la ondialogresponse si adaugi:

    Quote

    if(dialogid == DIALOG_CWARNS)
        {
            if(response)
            {       

    
    
    PlayerInfo[playerid][pPremiumPoints] -= 20;
    					Update(playerid, pPremiumPointsx);
    					PlayerInfo[playerid][pWarns] = 0;
    					new str[300],strings[200],name[30],stringss[200];
    					mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Warnings`='0',`PremiumPoints`='%d' WHERE `name`='%s'",PlayerInfo[playerid
    [pPremiumPoints],PlayerInfo[playerid][pNormalName]);
    					mysql_tquery(SQL,str,"","");


            }
            return 1;
        }

     

    Sper ca te-am ajutat. Daca da +1 sa te mai ajut in viitor.

    • Upvote 1
  7. Pune restrictia asta 

    new hour,minn,sec;
    	gettime(hour,minn,sec);
    	if(hour > 16 || hour < 23) return SCM(playerid,COLOR_WHITE,"{FFB870}Error: Un teritoriu poate fii atacat intre orele 16:00 si 23:00."); //aici schimbi orele cum vrei tu.

    Aceasta o pui dupa : exemplu

    CMD:attack(playerid, params[])

    {

    Aici o pui sau daca ai faza cu verificarea dac playerul este logat o pui dupa ea.

  8. Sunt pe tableta te ajut cum pot uite un inceput:

    Te duci unde ai pAdmin, pHelper etc. Si adaugi pJobLock, dupaia te duci la o comanda gen /lock(cea cu care inchizi masina personala) si te folosesti de acolo doar ca in loc de variabilele de acolo pui pJobLock duapai te duci la jobul respectiv iarmdupa ce playerul se urca in tractor adaugi functia de a inchide masina, sper ca m-am facut inteles cat de cat

  9. In primul rand nu se cer scripturi.

    2. Incearca sa faci ca atunci cand se urca in tractor de exemplu sa o blocheze, trebuie sa adaugi o variabila noua la joburi de care te ajuti sa o blochezi

    3. Incearca sa faci iar daca intampini problema posteaza aici

  10. Acum 2 ore, ..H3AtonN.. a spus:

    Frate am pus,si imi da erorile de mai jos

    Linia-Cod:ShowPlayerDialog(playerid, DIALOG_BIZZ, DIALOG_STYLE_LIST,"Bizurile:","Gun Shop LS\nBank Los Santos\n24/7 VineWood\n24/7 Taxi\nHot Dog Company\nRent Car Los Santos\nCNN Los Santos\nPhone Company\nVehicle Tow Company\nPay 'N Spray\nPay 'N Spray\nPay 'N Spray\nZIP\nBenzinarie\nBenzinarie\nBenzinarie\nAlhambra Night Club\nLos Santos Hospital\nPaintBall Los Santos\nTransfender Los Santos\nLoco Low Los Santos\nVehicle Color\nInsurance and Vehicle Registration\nRestaurant LS"SELECT", "EXIT");

    Da Restaurant Ls pune asa restaurant ls"," SELECT","EXIT"); SI VEZI UNDE SI CUM PUI RETURN 1;

    Si vezi la #define DIALOG_BIZZ 27 ACEL 27 SA NU SE REPETE LA ALT DIALOG ADICA SA NU AI PE ACOLO DE EXEMPLU #DEFINE DIALOG_SELLBIZZ 27

    • Upvote 1
  11. Ce vrei tu sa faca comanda /bizzbug123 ? Ca nu stiu cu ce sa te ajut daca nu ma lamurasti

    Deci acum am inteles, stergefunctia cu numele locatiilor ai fa dupa exemplu meu:

    1. CMD:bizzbug123(playerid,params[])
    2. {
    3. ShowPlayerDialog(playerid, DIALOG_BIZZ, DIALOG_STYLE_LIST,"Bizurile:","Gun Shop LS\nurmatoarea locatie\n si tot asa\ndar sa fie in ordinea de la ondialogresponse,"SELECT", "EXIT");
    4. return 1;(nu stiu daca am pus binerreturnu asta aunt pe tableta si ma grabesc)
    5. }
    6.  
×
×
  • 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.