[Tool/Web/Other] Zeex's PAWN Compiler Patches
#41

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)
Reply
#42

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
Reply
#43

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.
Reply
#44

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.
Reply
#45

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?
Reply
#46

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++ ...)
Reply
#47

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

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

version v3.10.4 avaliable!

https://github.com/Zeex/pawn/releases
Reply
#50

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

is this now as fast as that "russian compiler" ?
Reply
#52

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

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

Surpreendente. Obrigado a vocкs dois.
>.
Reply
#55

There is y_stringhash already for that:

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

Reply
#56

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!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)