Burgershot
  • Home
  • Members
  • Team
  • Help
  • Search
  • Register
  • Login
  • Home
  • Members
  • Help
  • Search
Burgershot SA-MP Pawn Scripting [Pawn] [SOLVED] compilation results in Pawno with Sublime so different ?

 
  • 0 Vote(s) - 0 Average
Pawn [SOLVED] compilation results in Pawno with Sublime so different ?
PutuSuhartawan
Offline

Burgershot Member
Posts: 120
Threads: 52
Joined: Nov 2020
Reputation: 1
Location: Indonesia
#1
2021-05-10, 11:16 PM (This post was last modified: 2021-05-12, 02:16 AM by PutuSuhartawan.)
SOLUTION:
Code:
Solved with, Stop, use the free Sublime, switch to Visual Studio Code for a compiler that will match both pawno and sampctl.

Problem:
I found strange symptoms when using the oldest version of the compiler and was asked to edit once with the sublime the results were stuck. In fact, the include from YSI will create a lot of missing files when compiled via sublime. But strangely, if you open it with pawno and compile it with the same obsolete pawncc, it only works in pawno. What makes YSI unsuitable for compiling via Sublime and compiling with the compiler?
Radical
Offline

Burgershot Member
Posts: 148
Threads: 21
Joined: Dec 2020
Reputation: 16
#2
2021-05-11, 03:39 AM (This post was last modified: 2021-05-11, 03:46 AM by Radical.)
I'm sure you didn't write the pawn build system correctly. There is no difference in compilation with Pawno or Sublime.

Go to Tools → Build System → New Build System…

Code:
{
"cmd": ["pawncc.exe", "-i includes -d3 -o", "$file", "-;+"],
"path": "C:/path/to/pawno"  
}
PutuSuhartawan
Offline

Burgershot Member
Posts: 120
Threads: 52
Joined: Nov 2020
Reputation: 1
Location: Indonesia
#3
2021-05-11, 04:58 AM (This post was last modified: 2021-05-11, 04:59 AM by PutuSuhartawan.)
(2021-05-11, 03:39 AM)Radical Wrote: I'm sure you didn't write the pawn build system correctly. There is no difference in compilation with Pawno or Sublime.

Go to Tools → Build System → New Build System…

Code:
{
"cmd": ["pawncc.exe", "-i includes -d3 -o", "$file", "-;+"],
"path": "C:/path/to/pawno" 
}

I've used the compile method before, sir. And the results are different. especially the results for including YSI
i used 
Code:
{

"cmd": ["pawncc.exe", "-i includes", "$file", "-;+"],
"path": "E:/GAME/Server PutuSuhartawansamp03DL_svr_R1_win32/Server orang/NAMI2/pawno"
}
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#4
2021-05-11, 08:54 AM
You've probably got some settings wrong. I can see one issue there - are you compiling on Linux or Windows?
PutuSuhartawan
Offline

Burgershot Member
Posts: 120
Threads: 52
Joined: Nov 2020
Reputation: 1
Location: Indonesia
#5
2021-05-11, 09:35 AM (This post was last modified: 2021-05-11, 09:40 AM by PutuSuhartawan.)
(2021-05-11, 08:54 AM)Y_Less Wrote: You've probably got some settings wrong.  I can see one issue there - are you compiling on Linux or Windows?

Sorry sir, I use this compiler on Windows, where is the fault, sir?

the result like this sir:
Code:
E:\GAME\Server PutuSuhartawansamp03DL_svr_R1_win32\pawno\include\YSI\y_iterate.inc(73) : fatal error 111: user error: Use `#include <YSI_Data\y_iterate>`

Compilation aborted.

Pawn compiler 3.10.10 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
[Finished in 0.1s with exit code 1]
[cmd: ['pawncc.exe', '-i includes -d3 -o', 'E:\\GAME\\Server PutuSuhartawansamp03DL_svr_R1_win32\\Server orang\\NAMI2\\gamemodes\\new.pwn', '-;+']]
[dir: E:\GAME\Server PutuSuhartawansamp03DL_svr_R1_win32\Server orang\NAMI2\gamemodes]
[path: C:\ProgramData\Oracle\Java\javapath;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\sampctl;C:\Users\ACER\scoop\shims;C:\Users\ACER\AppData\Local\Microsoft\WindowsApps;E:\GAME\Microsoft VS Code\bin;C:\sampctl\;C:\Users\ACER\AppData\Local\GitHubDesktop\bin]

But will no error if opened with pawno.
Y_Less
Offline

Administrator

Posts: 323
Threads: 16
Joined: Feb 2019
Reputation: 90
#6
2021-05-11, 02:42 PM
It's telling you the error. You used `YSI\y_iterate` instead of `YSI_Data\y_iterate`.
PutuSuhartawan
Offline

Burgershot Member
Posts: 120
Threads: 52
Joined: Nov 2020
Reputation: 1
Location: Indonesia
#7
2021-05-11, 04:40 PM (This post was last modified: 2021-05-11, 04:42 PM by PutuSuhartawan.)
Wow, I see sir, because all this time the notification has not been specific, you should add a link and the date of the change in the system including it so that you can understand more about the fix for this update, sir. my advice is so sir.

But this is another oddity, sir. Why didn't Pawno say that? why only new to sublime this problem appears?
Pinch
Offline

Burgershot Member
Posts: 391
Threads: 19
Joined: Apr 2019
Reputation: 22
Location: Belgrade, Serbia
#8
2021-05-11, 09:12 PM
It literally says what to do
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics.
PutuSuhartawan
Offline

Burgershot Member
Posts: 120
Threads: 52
Joined: Nov 2020
Reputation: 1
Location: Indonesia
#9
2021-05-12, 02:14 AM
Done, Try stop, use the free Sublime, switch to Visual Studio Code for a compiler that will match both pawno and sampctl.
« Next Oldest | Next Newest »



  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Burgershot - Powered by our Community and MyBB Original Theme by Emerald

Linear Mode
Threaded Mode