SA-MP Forums Archive
little help ? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: little help ? (/showthread.php?tid=513936)



little help ? - JakeHunter1 - 18.05.2014

http://pastebin.com/Uj7niRCb
Can tell me somone how to fix this , it gave me money but it needs to take my money ..


Re: little help ? - rumen98 - 18.05.2014

please translate it first


Re: little help ? - AndySedeyn - 18.05.2014

Nevermind


Re: little help ? - JakeHunter1 - 18.05.2014

Quote:
Originally Posted by rumen98
Посмотреть сообщение
please translate it first
http://pastebin.com/P7NEFQaV Here ..


Re: little help ? - rumen98 - 18.05.2014

I can not figure out what to do this function is very confused


Re: little help ? - JakeHunter1 - 18.05.2014

Quote:
Originally Posted by rumen98
Посмотреть сообщение
I can not figure out what to do this function is very confused
It's a warehouse for drugs , materials (for that works ) and money(i've got a little problem with the money :S )


Re: little help ? - rumen98 - 18.05.2014

your code doesn't have any close barrels and so-called


Re: little help ? - JakeHunter1 - 18.05.2014

Quote:
Originally Posted by rumen98
Посмотреть сообщение
your code doesn't have any close barrels and so-called
All code for the money
http://pastebin.com/EA1JSJXF


Re: little help ? - rumen98 - 18.05.2014

,,This paste has been removed!'' lol?


Re: little help ? - JakeHunter1 - 18.05.2014

Quote:
Originally Posted by rumen98
Посмотреть сообщение
,,This paste has been removed!'' lol?
Код:
if(dialogid == SEF_UNOVAC)
        {
                if(!response) return 1;
                if(response)
                {
                        new iznos,string[256];
                        new sendername[MAX_PLAYER_NAME];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(sscanf(inputtext, "i", iznos)) return GreskaMessage(playerid, "Ne vnesovte kolicina na pari za vadenje!");
                        if(iznos < 1 || iznos > 10000) return GreskaMessage(playerid, "Kolicinata na pari ne moze da bide ispod 1 i nad 10000!");
            if(PlayerInfo[playerid][pLeader] == 13)
                        {
                            if(iznos > OrgInfo[RmNovac]) return SCM(playerid,-1,"[GSF]: Nema tolku pari vo sefot!");
                GivePlayerMoney(playerid, iznos); OrgInfo[RmNovac] += iznos;
                                SCM(playerid,-1,"[GSF]: Zedovte pari od sefot!");
                                format(string, sizeof(string), "* %s vadi pari od sefot.", sendername);
                                ProxDetector(20.0,playerid,string,PROX,PROX,PROX,PROX,PROX);
                        }
                }
        }
//------------------------------------------------------------------------------
if(dialogid == SEF_ONOVAC)
        {
                if(!response) return 1;
                if(response)
                {
                        new iznos,string[256];
                        new sendername[MAX_PLAYER_NAME];
                GetPlayerName(playerid, sendername, sizeof(sendername));
                        if(sscanf(inputtext, "i", iznos)) return GreskaMessage(playerid, "Ne vnesovte kolicina na pari za ostavanje!");
                        if(iznos < 1 || iznos > 50000) return GreskaMessage(playerid, "Kolicinata na pari ne moze da bide ispod 1 i nad 50000!");
            if(iznos > PlayerInfo[playerid][pCash]) return GreskaMessage(playerid, "Nemate tolku pari vo sebe!");
                        if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
                        {
                            GivePlayerMoney(playerid, iznos); OrgInfo[RmNovac] += iznos;
                                SCM(playerid,-1,"[GSF]: Ostavivte pari vo sefot!");
                                format(string, sizeof(string), "* %s ostava pari vo sefot.", sendername);
                                ProxDetector(20.0,playerid,string,PROX,PROX,PROX,PROX,PROX);
                        }
                }
        }