Jump to content

valivaly96

Membru
  • Posts

    514
  • Joined

  • Last visited

  • Days Won

    8

Posts posted by valivaly96

  1. La 09.03.2018 la 21:35, Apexone a spus:

    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(65) : error 017: undefined symbol "AntiDeAMX"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(4343) : error 004: function "vUpdate" is not implemented
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(4723) : error 017: undefined symbol "PutPlayerInVehicleEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(4742) : error 017: undefined symbol "PutPlayerInVehicleEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(4761) : error 017: undefined symbol "PutPlayerInVehicleEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(4780) : error 017: undefined symbol "PutPlayerInVehicleEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(4799) : error 017: undefined symbol "PutPlayerInVehicleEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(5435) : error 017: undefined symbol "GetPlayerHealthEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(5440) : error 017: undefined symbol "SetPlayerHealthEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(5444) : error 017: undefined symbol "SetPlayerHealthEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(5873) : error 017: undefined symbol "SetPlayerPosEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(7001) : error 017: undefined symbol "GetPlayerHealthEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(7730) : error 017: undefined symbol "NumIp"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(9181) : error 017: undefined symbol "ClearWanted"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(9565) : error 017: undefined symbol "SetPlayerArmourEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(9603) : error 017: undefined symbol "SetPlayerArmourEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(9906) : error 017: undefined symbol "SetPlayerPosEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(9920) : error 017: undefined symbol "SetPlayerArmourEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(9965) : error 017: undefined symbol "SetPlayerPosEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(9989) : error 017: undefined symbol "SetPlayerPosEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(10014) : error 017: undefined symbol "SetPlayerPosEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(10039) : error 017: undefined symbol "SetPlayerPosEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(10064) : error 017: undefined symbol "SetPlayerPosEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(10111) : error 017: undefined symbol "SetPlayerPosEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(10129) : error 017: undefined symbol "SetPlayerPosEx"
    C:\Users\maxga\Desktop\WSter RPG\gamemodes\wster.pwn(10140) : error 017: undefined symbol "SetPlayerPosEx"

     

    Aceste erori imi sunt afisate, despre ce este vorba?

    sunt 2 posibilitati:

    1. ai o acolada neinchisa

    2. acele functii se aflau intr-un include pe care nu il ai inclus

  2. Acum 9 ore, RazvaN. a spus:

    foreach(new i : Player) {

     new vehicle;

    vehicle = GetPlayerVehicleID(i);

    if(i == dbid) return 1;

    }

    linia if(i==dbid) return 1; nu face ce trebuie in loc de i ar trebui vehicle.

    Deci in loc de  if(i==dbid) return 1; trebuie if(vehicle==dbid) return 1;

  3. Acum 7 ore, Martin a spus:

    Nume: Martin
    Problema: nu functioneaza comanda /cc
    Imagini/Video: nu este nevoie
    Cod Sursa:

    
    CMD:cc(playerid, params[]) {
         if(PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playerid, COLOR_WHITE, AdminOnly);
         foreach(Player, i) {
             if(PlayerInfo[i][pAdmin] < 1) {
       for(new i = 0; i < 50; i++) SendClientMessageToAll(COLOR_WHITE," ");
             }
         }
         new string[100];
         format(string, sizeof(string), "Warning: %s a sters chatul.",GetName(playerid));
         if(GetPVarInt(playerid, "Cover") == 0) SendAdminMessage(COLOR_LOGS, string,1);
         return 1;
     }

    Alte detalii: efectiv scriu /cc si nu se intampla nimic apare doar pe server ca adminul x a sters chatul dar defapt nu s-a sters nimic totul a ramas neschimbat.

    Comanda nu sterge chatul si pt admini ci doar pt playeri.

  4. Acum 43 minute, Exaton a spus:

    public OnPropTextdrawUpdate(update, h)
    {
        new PropertyString[512];
        if(update == 1)
        {
            new type[10],locked[20];
            if(HouseInfo[h][hInteriorType] == 0) format(type, sizeof(type),"Small");
            if(HouseInfo[h][hInteriorType] == 1) format(type, sizeof(type),"Medium");
            if(HouseInfo[h][hInteriorType] == 2) format(type, sizeof(type),"Big");
            if(HouseInfo[h][hLock] == 1) format(locked, sizeof(locked), "\n(locked)");
            HouseIcon[h] = CreateDynamicMapIcon(HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 31, -1, 0, 0, -1, 50.0);
            if(HouseInfo[h][hOwned] == 0)
            {
                DestroyDynamic3DTextLabel(HouseLabel[h]);
                format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {008080}%d \n{008080}%s \n{FFFFFF}Size: {008080}%s \n{FFFFFF}Price: {008080}$%s (/buyhouse) \n{FFFFFF}Level: {008080}%d %s",h,HouseInfo[h][hDiscription],type,FormatNumber(HouseInfo[h][hValue]),HouseInfo[h][hLevel],locked);
                HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
                DestroyDynamicPickup(HousePickup[h]);
                HousePickup[h] = CreateDynamicPickup(1273, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
            }
            else if(HouseInfo[h][hOwned] == 1)
            {
                new tenants=0,query[256],selltext[64];
                format(query, sizeof(query), "SELECT * FROM `users` WHERE `Rented` = '%d' AND `Status`='1'", h);
                new Cache: membresult = mysql_query(SQL, query);
                for(new i, j = cache_get_row_count (); i != j; ++i)
                {
                    tenants++;
                }
                cache_delete(membresult);
                if(HouseInfo[h][hPrice] > 0)
                {
                    format(selltext, sizeof(selltext),"\n{FFFFFF}Price: {008080}$%s (/buyhouse)",FormatNumber(HouseInfo[h][hPrice]));
                }
                if(HouseInfo[h][hRentabil] == 1)
                {
                    DestroyDynamic3DTextLabel(HouseLabel[h]);
                    format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {008080}%d \n{008080}%s \n{FFFFFF}Owner: {008080}%s \n{FFFFFF}Tenants: {008080}%d \n{FFFFFF}Size: {008080}%s \n{FFFFFF}Rent: {008080}$%d (/rentroom) %s %s",h,HouseInfo[h][hDiscription],HouseInfo[h][hOwner],tenants,type,HouseInfo[h][hRent],selltext,locked);
                    HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
                    DestroyDynamicPickup(HousePickup[h]);
                    HousePickup[h] = CreateDynamicPickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
                }
                else
                {
                    DestroyDynamic3DTextLabel(HouseLabel[h]);
                    format(PropertyString, sizeof(PropertyString),"{FFFFFF}House {008080}%d \n{008080}%s \n{FFFFFF}Owner: {008080}%s \n{FFFFFF}Tenants: {008080}%d \n{FFFFFF}Size: {008080}%s %s %s",h,HouseInfo[h][hDiscription],HouseInfo[h][hOwner], tenants, type, selltext, locked);
                    HouseLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
                    DestroyDynamicPickup(HousePickup[h]);
                    HousePickup[h] = CreateDynamicPickup(1272, 23, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
                }
            }
            if(HouseInfo[h][hgaraj] == 1)
            {
                new label[256];
                DestroyDynamic3DTextLabel(GarajeLabel[h]);
                format(label, sizeof(label), "{FFFFFF}Garage {008080}%d\n{FFFFFF}Owner: {008080}%s\n{FFFFFF}To enter type {008080}/garage",h, HouseInfo[h][hOwner],HouseInfo[h]);
                GarajeLabel[h] = CreateDynamic3DTextLabel(label, 0xFFFFFFFF, HouseInfo[h][gExtX], HouseInfo[h][gExtY], HouseInfo[h][gExtZ], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
                DestroyDynamicPickup(GarajePickup[h]);
                GarajePickup[h] = CreateDynamicPickup(19133, 1, HouseInfo[h][gExtX], HouseInfo[h][gExtY], HouseInfo[h][gExtZ]);
            }
        }
        else if(update == 2)
        {
            if(BizzInfo[h][bOwned] == 0)
            {
                DestroyDynamic3DTextLabel(BizzLabel[h]);
                if(BizzInfo[h][bLocked] == 0) format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n {EEEEEE}Price: {0068CF}$%s (/buybusiness) \n{EEEEEE}Level: {0068CF}%d",BizzInfo[h][bMessage],h,FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
                else format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n {EEEEEE}Price: {0068CF}$%s (/buybusiness) \n{EEEEEE}Level: {0068CF}%d \n(locked)",BizzInfo[h][bMessage],h,FormatNumber(BizzInfo[h][bBuyPrice]),BizzInfo[h][bLevelNeeded]);
                BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
            }
            else if(BizzInfo[h][bOwned] == 1)
            {
                DestroyDynamic3DTextLabel(BizzLabel[h]);
                if(BizzInfo[h][bPrice] > 0)
                {
                    if(BizzInfo[h][bLocked] == 0) format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s \n{EEEEEE}Price: {0068CF}$%s (/buybusiness)",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]), FormatNumber(BizzInfo[h][bPrice]));
                    else format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s \n{EEEEEE}Price: {0068CF}$%s (/buybusiness) \n(locked)",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]), FormatNumber(BizzInfo[h][bPrice]));
                }
                else
                {
                    if(BizzInfo[h][bLocked] == 0) format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]));
                    else format(PropertyString, sizeof(PropertyString),"{0068CF}%s \n{EEEEEE}Business {0068CF}#%d \n{EEEEEE}Owner: {0068CF}%s \n{EEEEEE}Fee: {0068CF}$%s \n(locked)",BizzInfo[h][bMessage],h,BizzInfo[h][bOwner],FormatNumber(BizzInfo[h][bEntranceCost]));
                }
                BizzLabel[h] = CreateDynamic3DTextLabel(PropertyString, 0xFFFFFFFF, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ], 20.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, 100.0);
            }
        }
        return 1;
    }

    aici pare totul ok. poate cand incarci casele cand folosesti instructiunea for e posibil ca i sa plece de la 1 nu de la 0

  5. 1 oră în urmă, Exaton a spus:

    Salutare am o problema la textele de la case bizuri si garage depe gamemodeul Galaxy-Arena la id 0 nu apare la id 1 -2 etc arata dar id 0 nu arata, inainte cand dadeam rr la sv aparea dar acum nici dupa rr cum pot rezolva help plz 

    arata functia aferenta acestor texte

  6. La 04.03.2018 la 6:58, Abytzu a spus:

    Salut, sunt incepator in scripting. Ma poate ajuta cineva sa fac o chestie ca adminii sa fie exclusi de anticheat? ex:sa poata folosi surfly fara sa ii ia anticheat-ul

    PS:Folosesc gamemode-ul wster rpg

    Multumesc anticipat!

    Pai cand faci verificarile aferente pt anticheat pui conditia ca daca PlayerInfo[playerid][pAdmin]>=1 sa nu intre in bucla de verificare sau pui conditia  <1 si intra in bucla de verificare

  7. La 01.03.2018 la 9:44, Davidoff7776 a spus:

    Salut! Sunt un incepator in pawn/scripting si as dori daca puteti sa imi dati un gamemode(RPG) pe care pot incepe sa lucrez si cateva sfaturi ar fi bine-venite.

    Incearca gamemodul lui eddison

    • Upvote 1
  8. Acum 1 minut, Exaton a spus:

    asta nu e aia e alta cum e aici Problema Panel - Ajutor sus asa e si la panel dar mine imi trb aia cu UltraWhit sa schimb

    Trebuie sa schimbi textul din variabila aceea ce nu intelegi? in variabila aia e textul ultraWhite. tu in loc de ultraWhite pui numele comunitatii tale. E greu?

  9. Acum 6 minute, Exaton a spus:

     

    am gasit da doar asta 

    <div class="page-content"><div class="row-fluid"><div class="span12">
    <div class="span8">

    <title><?php echo Config::$_SITE_NAME; ?> - User Panel</title>
     cu User Panel

    modifica stringul care se afla in variabila $_SITE_NAME

  10. Acum 20 ore, Davidoff7776 a spus:

    Uite aici comanda:

    CMD:makeadmin(playerid, params[])
    {
        if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
        if(IsPlayerConnected(playerid))
        {
            if (PlayerInfo[playerid][pAdmin] >= 6 || EstiFondator(playerid))
            {
                new id,adminlevel,sendername[30],giveplayer[30],string[200],escape[200];
                if(sscanf(params, "ui",id,adminlevel)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FF9900}Scrie: {33CCFF}/makeadmin` <Name/Playerid> <Admin Level>");
                if(PlayerInfo[id][pAdmin] >= 6 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Nu poti modifica admin level-ul unui admin 6+!.");
                if(adminlevel > 4 && !EstiFondator(playerid)) return SendClientMessage(playerid, COLOR_WHITE, "Only founders can make admin higher than 4.");
                if(IsPlayerConnected(id))
                {
                    if(id != INVALID_PLAYER_ID)
                    {
                        GetPlayerName(id, giveplayer, sizeof(giveplayer));
                        GetPlayerName(playerid, sendername, sizeof(sendername));
                        printf("AdmCmd: %s has promoted %s to a level %d admin.", sendername, giveplayer, adminlevel);
                        format(string, sizeof(string), "You've been promoted to level %d admin, by %s.", adminlevel, sendername);
                        SendClientMessage(id, COLOR_YELLOW, string);
                        format(string, sizeof(string), "You have promoted %s to a level %d admin.", giveplayer,adminlevel);
                        SendClientMessage(playerid, COLOR_YELLOW, string);
                        format(string, sizeof(string), "* Admin %s set %s's admin level to %d.", sendername,giveplayer,adminlevel);
                        ABroadCast(COLOR_ADMIN,string,1);
                        HLChat(COLOR_ADMCHAT,string);
                        mysql_real_escape_string(string, escape);
                        PlayerInfo[id][pAdmin] = adminlevel;
                        if(adminlevel == 0)
                        {
                            AdminDuty[id] = 0;
                        }
                        new str[256];
                        mysql_format(SQL,str,sizeof(str),"UPDATE users SET `Admin`='%d' WHERE `name`='%s'",PlayerInfo[id][pAdmin],PlayerInfo[id][pNormalName]);
                        mysql_tquery(SQL,str,"","");
                        mysql_format(SQL,str, sizeof(str), "INSERT INTO staff_logs (`text`) VALUES ('%s')", escape);
                        mysql_tquery(SQL,str,"","");
                    }
                }
                else
                {
                    SendClientMessage(playerid, COLOR_WHITE, "{FFFFCC}Error: Player not connected.");
                }
            }
            else
            {
                SendClientMessage(playerid, COLOR_ERROR, AdminOnly);
            }
        }
        return 1;
    }
     

    Du te la functia esti fondator si pune nuck ul tau il locul celui de acolo.

    • Like 1
  11. Acum 2 ore, Exaton a spus:

    imi da error
    error 032: array index out of bounds (variable "PlayerInfo")
    error 032: array index out of bounds (variable "PlayerInfo")
    warning 213: tag mismatch
     error 032: array index out of bounds (variable "PlayerInfo")
     error 032: array index out of bounds (variable "PlayerInfo")

    dc?

     

    Acesezi o valoare de pe un "loc" care nu e definit, gen playerinfo e pana la 1000 si tu accesezi 1001

  12. Acum 4 ore, AndreiBoss.adevaratu a spus:

    am o problema la server
    am gamemode-u angelzone pe serveru meu si
    am o parola la phpmyadmin de 15 cifre 
    si cand ma inregistrez nu ma lasa sa ma loghez 
    la gm burned avem o parola mai mic si tot asta mi s-a intampla si cand am zis acea parola de 15 cifre a mers
    ajutati-ma va rog eu

    In primul randCe versiune de mysql folosesti?

    In al doilea rand posteaza mysql_connect si variabilele aferente(daca folosesti cva variabile)

    • Sad 1
  13. Acum 16 ore, bogdaNNNNN a spus:

    Salut! Are cineva o functie gen cum e pe Ruby? Cand un player iese din casa, sa nu mai poata intra pentru un numar X de secunde.

    Multumesc frumos.

    Pai cand iese din casa apasand o tasta sau folosind o comanda pui o variabila pe 1, gen antiabuz[playerid]=1; setezi un timer de X secunde care va pune variabila de mai sus pe 0;

    o secunda =1000ms cand setezi timerul. de exeplu pt 5 secunde pui 5000 s.a.m.d

    Si cand jucatorul apasa tasta pt intrare sau foloseste comanda faci o verificare if(antiabuz[playerid]==1) return SCM(playerid,culoare,"Nu poti intra intr-un interior decat odata la X secunde");

     

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