Jump to content

tyger

Membru
  • Posts

    22
  • Joined

  • Last visited

Posts posted by tyger

  1. Problema intalnita: Problema spawn masini in gamemode stunt.

    Ero(area / rile) / warning-(ul / urile): Nu am unele momentan.

    Codul sursa [daca este cazul](pastebin): Se afla in gamemode problema, nu il pot posta.

    Imagini / Video cu problema: Nu am momentan, sunt la munca si nu pot sa fac.

    Ce ai incercat sa faci?:  Schimb cateva chesti care nu ai influentat cu nimic.

    Explicare problema(o adaugare de mine daca se poate):

    Problema consta in felul urmator:
    Cand un player isi ia de exemplu un nrg si ii pune neoane iar dupa un timp indelungat alt player tasteaza si el /nrg este posibil sa primeasca nrg-ul acelui player care l-a tunat.
    Problema nu apare imediat, ea apare la 1-2 zile sau in functie de cati playeri au jucat si cate vehicule au spawnat in total.
    Eu m-am gandit sa fac de un script in care atunci cand iesi din vehicul sa dispara acea masina in 15 secunde, dar am pus si alta problema deoarece am si un sistem de masini personale si nu vreau sa fie influentat de acel script.
    Am mai observat ca se incurca id-urile masinilor la un momentdat cand apare acea problema, practic se schimba id-urile vehiculelor si poate asta ar fi si problema.
    Ma puteti ajuta in rezolvarea acestei probleme?
    Multumesc!

  2. Salutare 
     
    Am o functie care imi updateaza in baza de date banurile, problema este ca in loc sa imi insereze Numele adminul care a dat ban si numele banatului imi insereaza ID-urile conturilor lor.
     
    Ma puteti ajuta sa rezolv? Las functia mai jos:

    forward Banlog(ip[],psql,asql,reason[],day);
    
    
    


    public Banlog(ip[],psql,asql,reason[],day)
    {
        new query[500];
        new y,m,d,h,mi,s;
            getdate(y,m,d);
            gettime(h,mi,s);
        format(query,sizeof(query),"INSERT INTO banlog (`ip`,`player`,`admin`,`reason`,`day`,`time`) VALUES ('%s','%d','%d','%s','%d','%02d/%02d/%d %02d:%02d:%02d')",ip,psql,asql,reason,day,d,m,y,h,mi,s);
        mysql_query(SQL,query);
        return 1;
    }


    CMD:banex(playerid, params[])
    {
        new name[MAX_PLAYER_NAME];
        if(PlayerInfo[playerid][pAdmin] >= 1)
        {
            new giveplayerid,days,reason[128],string[128],giveplayer[25];
            if(sscanf(params, "uds[128]", giveplayerid,days,reason)) return SCM(playerid,COLOR_WHITE,"Tasteaza: /banex <Name/Playerid> <day> <Reason>");
            if(IsPlayerConnected(giveplayerid))
            {
                if(days <= 0 || days > 1000) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Day! (1-1000)");
                GetPlayerName(playerid, name, sizeof name);
                GetPlayerName(giveplayerid, giveplayer, sizeof(giveplayer));
                new year,month,day;
                getdate(year, month, day);
                day += days;
                if (IsMonth31(month))
                {
                    if (day > 31)
                    {
                        month += 1;
                        if (month > 12)
                        {
                            year += 1;
                            while(day > 31) day -= 31;
                        }
                        else while(day > 31) day -= 31;
                    }
                }
                else if (!IsMonth31(month))
                {
                    if (day > 30)
                    {
                        month += 1;
                        if (month > 12)
                        {
                            year += 1;
                            while(day > 30) day -= 30;
                        }
                        else while(day > 30) day -= 30;
                    }
                }
                else if (!IsMonth31(month) && IsMonth29(year) && month == 2)
                {
                    if (day > 29)
                    {
                        month += 1;
                        if (month > 12)
                        {
                            year += 1;
                            while(day > 29) day -= 29;
                        }
                        else while(day > 29) day -= 29;
                    }
                }
                else if (!IsMonth31(month) && !IsMonth29(year) && month == 2)
                {
                    if (day > 28)
                    {
                        month += 1;
                        if (month > 12)
                        {
                            year += 1;
                            while(day > 28) day -= 28;
                        }
                        else while(day > 28) day -= 28;
                    }
                }
                PlayerInfo[giveplayerid][pBTemp] = 1;
                PlayerInfo[giveplayerid][pBYear] = year;
                PlayerInfo[giveplayerid][pBMonth] = month;
                PlayerInfo[giveplayerid][pBDay] = day;
                strmid(PlayerInfo[giveplayerid][pBBy], name, 0, strlen(name), 255);
                strmid(PlayerInfo[giveplayerid][pBReason], reason, 0, strlen(reason), 255);
                Update(giveplayerid,pBTempx);
                Update(giveplayerid,pBYearx);
                Update(giveplayerid,pBMonthx);
                Update(giveplayerid,pBDayx);
                Update(giveplayerid,pBByx);
                Update(giveplayerid,pBReasonx);
                if(days == 1)
                {
                    format(string,128,"AdmCmd: %s a fost banat de %s pentru %d zile, motiv: %s",giveplayer,name,days,reason);
                    SendClientMessageToAll(0xf03337FF,string);
                }
                else if(days > 1)
                {
                    format(string,128,"AdmCmd: %s a fost banat de %s pentru %d zile, motiv: %s",giveplayer,name,days,reason);
                    SendClientMessageToAll(0xf03337FF,string);
                }
                new ip[25];
                GetPlayerIp(giveplayerid, ip, sizeof(ip));
                Banlog(ip,PlayerInfo[giveplayerid][pSQLID],PlayerInfo[playerid][pSQLID],reason,days);
                KickEx(giveplayerid);
            }
            else return SendClientMessage(playerid, COLOR_WHITE, "Jucatorul nu este conectat.");
        }
        else return SendClientMessage(playerid,COLOR_WHITE,AdminOnly);
        return true;
    }

     

     

    1. Cred ca e de la public Banlog deoarece psql si asql nu sunt definite ca sa imi updateze numele.

    2. pSQLID imi defineste id-ul contului in baza de date. Pot sa creez si o functie la fel pt tabelul name daca este necesar.

     

    Va rog sa ma ajutati sa rezolv.

     

     

  3. Salutare sa-mp.ro

    Am si eu un sv de samp si imi da eroare la compilare va las cateva poze.

    Apare asta cand compilez:

    image.png

    Si linia unde a dat eroare este:

    [img width=500 height=245] image.png

    Va rog eu mult sa ma ajutati!

    Care ma ajuta dau host samp 30 sloturi port 7888 !

  4. Imi da erorile urmatoare:

    D:\Servere si altele\Skyhost\3 decembri 2011 tyger\gamemodes\RO.pwn(5111) : error 017: undefined symbol "PlayerInfo"

    D:\Servere si altele\Skyhost\3 decembri 2011 tyger\gamemodes\RO.pwn(5111) : warning 215: expression has no effect

    D:\Servere si altele\Skyhost\3 decembri 2011 tyger\gamemodes\RO.pwn(5111) : error 001: expected token: ";", but found "]"

    D:\Servere si altele\Skyhost\3 decembri 2011 tyger\gamemodes\RO.pwn(5111) : error 029: invalid expression, assumed zero

    D:\Servere si altele\Skyhost\3 decembri 2011 tyger\gamemodes\RO.pwn(5111) : fatal error 107: too many error messages on one line

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    4 Errors.

  5. Va rog frumos sa imi puneti si mie comadna de /unban in acesti fiser .pwn va rog frumos ca eu nu pot

    Uitati fisierul: http://www.girlshare.ro/3087482.2

    Va rog frumos!!! Macar acum de sarbatori

    Multumesc!!!!

    Sarbatori Fericite Tuturor ! ! !

  6. Respecta si vei fi respectat

    Care ma poate ajuta sa compilez fisierul asta http://www.girlshare.ro/2914619.4

    Ca pe mine nu ma lasa imi da erorile:

    I:\Sa-mp server\Romania Super Stunt\pawno\include\cps.inc(140) : warning 208: function with tag result used before definition, forcing reparse

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(579) : error 017: undefined symbol "RemovePlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(747) : error 017: undefined symbol "SetPVarInt"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(748) : error 017: undefined symbol "SetPVarInt"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(2807) : error 017: undefined symbol "SetPVarInt"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(2808) : error 017: undefined symbol "RemovePlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3016) : error 017: undefined symbol "SetPVarInt"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3017) : error 017: undefined symbol "SetPVarInt"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3078) : error 017: undefined symbol "SetPVarInt"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3079) : error 017: undefined symbol "RemovePlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3190) : error 017: undefined symbol "GetPVarInt"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3191) : error 017: undefined symbol "RemovePlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3197) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3200) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3205) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3208) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3214) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3217) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3222) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3225) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3231) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3234) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3239) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3242) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3248) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3251) : error 017: undefined symbol "SetPlayerAttachedObject"

    I:\Sa-mp server\Romania  Xtreme Stunt\gamemodes\RXS.pwn(3256) : error 017: undefined symbol "SetPlayerAttachedObject"

    Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    26 Errors.

    Va rog eu mult sa imi compilati fisierul si sa ma ajutati sa imi rezolv problema

    ID Yahoo: tyger.speed

    Multumesc!!!!

  7. Va rog frumos dac ama puteti ajuta sa compilez fisierul RO.pwn

    cand dau compile imi da eroarea asta : http://postimage.org/image/ar56d1qnp/

    Va rog mult sa imi rezolvati si mie problema

    Uite va dau si fisierul daca se poate sa il editati

    Asta:

    http://www.mediafire.com/myfiles.php

    Sau asta:

    http://www.girlshare.ro/2890301.7

    In caz de orce id meu tyger.speed

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