SA-MP Forums Archive
[Tool/Web/Other] Zeex's PAWN Compiler Patches - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Tools and Files (https://sampforum.blast.hk/forumdisplay.php?fid=82)
+---- Thread: [Tool/Web/Other] Zeex's PAWN Compiler Patches (/showthread.php?tid=473595)

Pages: 1 2 3


Re: Zeex's PAWN Compiler Patches - Misiur - 02.02.2014

That's thanks to -v flag (default pawno setting is -v0 (shows only when nearing stack/heap clash), starting with -v1 you'll get that information always)


Re: Zeex's PAWN Compiler Patches - cyber_punk - 03.02.2014

Finally got the newer version of the compiler working with YSI 4.0, thanks Zeex and Y_Less, however now I have to go into each include file and add a custom include guard as this one hates multiple includes (streamer, math plugin, sscanf2 etc...). Ah well small price to pay for bug fixes I guess :S


Re: Zeex's PAWN Compiler Patches - kurta999 - 04.02.2014

Another intresting bug, not my code is invalid, this is bug.

pawn Code:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
    {
        case DIALOG_DM_EDIT:
        {
            if(!response)
                return DeletePVar(playerid, "DMSelect");

            new
                dmid = GetPVarInt(playerid, "DMSelect"); // Declare dmid variable
            switch(listitem)
            {
                case 0: // Csatlakozбs
                {
                    g_pDeathMatchID[playerid] = dmid;
                    SendClientMessagef(playerid, COLOR_YELLOW, "Csatlakoztбl a {" #XCOLOR_PINK "}%s nevű DM-hez. {" #XCOLOR_DEFAULT "}(id: %d)", country, dmid);

                    UpdateDMSpawn(playerid);
                    SpawnPlayer(playerid);
                }
                case 1: // Informбciуk megtekintйse
                {

                }
                case 2: // Nйv megvбltoztatбsa
                {
                    format(i_str, 64, "{" #XCOLOR_BLUE "}%s -> Nйv vбltбs", g_szDMName[dmid]);
                    ShowPlayerDialog(playerid, DIALOG_DM_EDIT_NAME, DIALOG_STYLE_INPUT, i_str, "Нrd be lentre a DM ъj nevйt.", "Okй", "Vissza");
                    SetPVarInt(playerid, "EditName", 1);
                }
                case 3: // Gyorsparancs megvбltoztatбsa
                {
                    format(i_str, 64, "{" #XCOLOR_BLUE2 "}%s -> Parancs beбllнtбsa", g_szDMName[dmid]);
                    ShowPlayerDialog(playerid, DIALOG_DM_EDIT_NAME, DIALOG_STYLE_INPUT, i_str, "Нrd be lentre a DM-hez tartozу parancsot\n\nHa tцrцlni akarod, akkor ne нrj be semmit.", "Okй", "Vissza");
                    SetPVarInt(playerid, "EditName", 2);
                }
                case 4: // Fegyverek szerkesztйse
                {

                }
                case 5, 6, 7, 8: // Tнpus, Clearworld, Headshot, Weapon Buy
                {
                    static const
                        E_DM_FLAGS:aWhat[] = {e_IS_TDM, e_IN_CLEARWORLD, e_HEADSHOT, e_WEAPONS_BUY},
                        szState[][] = {"{" #XCOLOR_RED "}Nem", "{" #XCOLOR_GOLD "}Igen"};
                    new
                        id = listitem - 5,
                        i;

                    // : ig tцrцljьk a stringet majd a vйgйn elhelyezzьk az engedйlyez-ve vagy a tiltva rйzletet
                    while(inputtext[i])
                    {
                        if(inputtext[i] == ':')
                        {
                            inputtext[i] = ' ';
                            inputtext[i + 1] = EOS;
                            break;
                        }
                        i++;
                    }
                    strcpy(i_str, inputtext); // inputtext -> i_str-be mбsolбsa
                    printf("after shit: %s, %d", inputtext, id);

                    g_DMFlags[dmid] ^= aWhat[id];

                    new
                        flag = ((g_DMFlags[dmid] & aWhat[id]) != E_DM_FLAGS:0);

                    strcat(i_str, "{" #XCOLOR_GREEN3 "}megvбltoztatva - ");
                    switch(id)
                    {
                        case 0: strcat(i_str, (flag) ? ("TDM") : ("DM"));
                        default: strcat(i_str, szState[flag]);
                    }

                    SendClientMessage(playerid, COLOR_BLUE, i_str);
                    ShowDMEditDialog(playerid, dmid);
                }
            }
            //DeletePVar(playerid, "DMSelect");
            return 1;
        }
        case DIALOG_DM_EDIT_NAME:
        {
            new
                dmid = GetPVarInt(playerid, "DMSelect"); //  (746) : error 021: symbol already defined: "dmid" - WTFFF????
            if(!response) goto Ide;
           
            // Code..
        }
    }
}

//////////////
// Check these in the code, these are good placed. This SHOULD work, because I used same method in my clan system with "clanid" and I never get any errors. This is very annoying bug.

            new
                dmid = GetPVarInt(playerid, "DMSelect"); // Declare dmid variable

            new
                dmid = GetPVarInt(playerid, "DMSelect"); //  (746) : error 021: symbol already defined: "dmid"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SERVER\filterscripts\createdm.pwn(796) : error 021: symbol already defined: "dmid"
C:\Program Files (x86)\Rockstar Games\GTA San Andreas\SERVER\filterscripts\createdm.pwn(796) : warning 204: symbol is assigned a value that is never used: "dmid"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.


Re: Zeex's PAWN Compiler Patches - ZiGGi - 03.12.2016

Quote:
Originally Posted by kurta999
Посмотреть сообщение
I think the 3 minute waiting for every compilation is useless
At least I need Linux version.

Quote:
Originally Posted by Max_Andolini
Посмотреть сообщение
Codes are right but compiler is false.

24376

Код:
if(!PlayerData[playerid][pOdunculuk])
24379

Код:
if(Agaclar[id][agacHasar] > 0)
51083

Код:
if(Car_IsOwner(playerid, id) && (GetFactionType(playerid) == FACTION_POLICE || GetFactionType(playerid) == FACTION_GOV))
You should look on intendation, not on your code.


Re: Zeex's PAWN Compiler Patches - leon44 - 20.10.2017

Hey I've put ''pawncc.dll and pawncc.exe'' inside ''pawno'' folder but when I open up ''pawncc.exe'' the black box shows up and promptly it closes. why is happening that?


Re: Zeex's PAWN Compiler Patches - Spmn - 20.10.2017

Because pawncc.exe is a command-line tool, so you have to pass arguments.
Why don't you just replace pawncc and compile through your favorite IDE (pawno, sublime, notepad++ ...)


Re: Zeex's PAWN Compiler Patches - eakwarp - 27.10.2017

New version really fast.
3.10.2 - 5 min 30 sec
3.10.3 - 28 sec


Re: Zeex's PAWN Compiler Patches - GamezCEO - 28.10.2017

OK, this is simply lightning fast. Lovin it! Rep+


Re: Zeex's PAWN Compiler Patches - RogerCosta - 08.11.2017

version v3.10.4 avaliable!

https://github.com/Zeex/pawn/releases


Re: Zeex's PAWN Compiler Patches - DimaShift - 10.11.2017

Zeex, there is a minus in this pawno, 100 online, decreases the "GetServerTickRate()" more than the standard version.


Re: Zeex's PAWN Compiler Patches - wallee - 10.11.2017

is this now as fast as that "russian compiler" ?


Re: Zeex's PAWN Compiler Patches - VVWVV - 10.11.2017

Quote:
Originally Posted by wallee
Посмотреть сообщение
is this now as fast as that "russian compiler" ?
Yes.


Re: Zeex's PAWN Compiler Patches - wallee - 11.11.2017

Quote:
Originally Posted by VVWVV
Посмотреть сообщение
Yes.
holy shit, good job guys


Re: Zeex's PAWN Compiler Patches - Renan157 - 15.01.2018

Surpreendente. Obrigado a vocкs dois.
>.


Re: Zeex's PAWN Compiler Patches - Y_Less - 06.04.2018

There is y_stringhash already for that:

PHP Code:
switch (YHash(string))
{
case 
_H<hello>: {}
case 
_H<world>: {}




Re: Zeex's PAWN Compiler Patches - ForCop - 07.04.2018

Quote:
Originally Posted by Y_Less
View Post
There is y_stringhash already for that:

PHP Code:
switch (YHash(string))
{
case 
_H<hello>: {}
case 
_H<world>: {}

thanks bro!