SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Tools and Files

Reply
 
Thread Tools Display Modes
Old 30/09/2018, 06:23 PM   #11
cuddlee
Big Clucker
 
cuddlee's Avatar
 
Join Date: Jun 2016
Location: forest
Posts: 127
Reputation: 43
Default Re: The Pawn Community Compiler Project

10/10 would recommend to a friend
cuddlee is offline   Reply With Quote
Old 30/09/2018, 06:48 PM   #12
aymel
Huge Clucker
 
aymel's Avatar
 
Join Date: Jul 2015
Location: irc.tl @ Khanz in the lunchroom w/ dylan x eric
Posts: 351
Reputation: 120
Default Re: The Pawn Community Compiler Project

ah yes open source *rubs hands*
__________________
I don't like you (you)
I don't like you (you)
I'll give you to the count of ten
For you to start running again
We just could've been friends
But you decided to hurt me
Decided to hurt me

aymel is offline   Reply With Quote
Old 30/09/2018, 10:53 PM   #13
iLearner
Gangsta
 
iLearner's Avatar
 
Join Date: Apr 2017
Posts: 629
Reputation: 134
Default Re: The Pawn Community Compiler Project

Yep recommended.
iLearner is offline   Reply With Quote
Old 05/10/2018, 10:01 AM   #14
wallee
Huge Clucker
 
Join Date: Jan 2017
Posts: 307
Reputation: 40
Default Re: The Pawn Community Compiler Project

Quote:
Originally Posted by [HLF]Southclaw View Post
SA-MP uses a modified version of Pawn 3.2.3664 [1] with Windows-only executables, and the developers said that they lost the source code for it which means it canít be ported to other platforms (e.g. Linux) and newly discovered bugs canít be fixed. So the main goal of the project is to re-create changes that were previously made by the devs as well as fix all known compiler bugs.

[1] Itís worth noting that the version of the AMX embedded into the SA-MP server seems to be based on an older release of Pawn.
if kalcor lost the source code to it and then you guys recreated it from scratch how do you know this matches all the functionality of the old one?

i am using this for about a year and haven't encountered any issues but i'm just curious
wallee is offline   Reply With Quote
Old 05/10/2018, 11:33 AM   #15
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 15,241
Reputation: 3185
Default Re: The Pawn Community Compiler Project

Quote:
Originally Posted by wallee View Post
if kalcor lost the source code to it and then you guys recreated it from scratch how do you know this matches all the functionality of the old one?

i am using this for about a year and havenít encountered any issues but iím just curious
Kalcor didnít do the original modifications, I did. Even if that werenít the case, it is very easy to confirm that the changes match by taking code that would only compile on the old one and compiling it on the new one.
Y_Less is offline   Reply With Quote
Old 13/10/2018, 02:02 AM   #16
NoahF
Gangsta
 
NoahF's Avatar
 
Join Date: Jul 2012
Location: USA
Posts: 889
Reputation: 38
Default Re: The Pawn Community Compiler Project

Simply fantastic. Great work, thank you!
NoahF is offline   Reply With Quote
Old 14/10/2018, 11:17 AM   #17
Calisthenics
Huge Clucker
 
Join Date: May 2018
Posts: 404
Reputation: 69
Default Re: The Pawn Community Compiler Project

Is this a normal behavior of const-correctness? The compiler complains (as it should) about 1D array but not for 2D, 3D or 4D arrays
pawn Code:
#include <a_samp>

main()
{
    new arr[10];

    func(arr);

    printf("value: %d", arr[0]);
}

func(const arr[])
{
    arr[0] = 1; // error 022: must be lvalue (non-constant)
}
pawn Code:
#include <a_samp>

main()
{
    new arr[10][10];

    func(arr);

    printf("value: %d", arr[0][0]); // prints "value: 1"
}

func(const arr[][])
{
    arr[0][0] = 1;
}
No warnings. It modifies the value even though it is meant to be a constant array.
Calisthenics is offline   Reply With Quote
Old 14/10/2018, 03:29 PM   #18
Y_Less
Beta Tester
 
Y_Less's Avatar
 
Join Date: Jun 2008
Location: 629 - git.io/Y
Posts: 15,241
Reputation: 3185
Default Re: The Pawn Community Compiler Project

No, that's not correct. Could you open an issue on github please?
Y_Less is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] TexAndreas - Community Project Development Pottus Plugin Development 36 21/10/2018 06:20 PM
Project: Community, Our Struggle Pyraeus Discussion 11 23/01/2018 12:55 AM
PAWN Compiler Error Unable to execute Compiler.. Geeboi_Mehdi General 13 07/11/2015 05:26 PM
Community project help Ryz Scripting Help 5 05/09/2014 07:23 PM


All times are GMT. The time now is 01:25 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.