Error Compiling in VSCode
#1

When I try to compile with VSCode, it shows these errors:

Код:
> Executing task: D:\CNRSF\pawno\pawncc.exe gamemodes/CCNR.pwn <

Pawn compiler 3.2.3664                  Copyright © 1997-2006, ITB CompuPhase

D:\CNRSF\pawno\include\required/sscanf2.inc(304) : warning 218: old style prototypes used with optional semicolumns
D:\CNRSF\pawno\include\required/sscanf2.inc(364) : warning 218: old style prototypes used with optional semicolumns
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Internal\..\YSI_Server\y_scriptinit.inc(243) : error 010: invalid
function or declaration
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Internal\..\YSI_Server\y_scriptinit.inc(251) : error 010: invalid
function or declaration
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Internal\..\YSI_Server\y_scriptinit.inc(259) : error 010: invalid
function or declaration
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Internal\..\YSI_Server\y_scriptinit.inc(267) : error 010: invalid
function or declaration
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Internal\..\YSI_Server\y_scriptinit.inc(275) : error 010: invalid
function or declaration
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Core\y_debug.inc(345) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Core\y_debug.inc(345) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(360) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(360) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(404) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(404) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(449) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(449) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(625) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(625) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(779) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(779) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(1060) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(1060) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(1131) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(1131) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(1138) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(1138) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(1156) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(1156) : error 036: empty statement
D:\CNRSF\pawno\include\YSI\..\YSI_Data\..\YSI_Internal\..\YSI_Core\..\YSI_Storage\y_amx.inc(1163) : error 036: empty statement

Compilation aborted.
26 Errors.
The terminal process terminated with exit code: 1

Terminal will be reused by tasks, press any key to close it.
But when I try to Compile with Pawno or PawnoX, it compiled successfully.
Anyone know how to solve this?
Reply
#2

My tasks.json:

PHP код:

  
"version""2.0.0",  
  
"type""shell"
  
"args": ["${relativeFile}"],  
  
"windows":  
  {  
      
"command""${workspaceRoot}\\pawno\\pawncc.exe"  
  
},
  
"problemMatchers": [
    
"$pawncc"
  
]

Reply
#3

I've got the copy of tasks.json from my friend and it worked.
Compiled without error.

new tasks.json
PHP код:

  
"version""2.0.0"
  
"tasks": [ 
    { 
      
"label""build-normal"
      
"type""shell"
      
"command""${workspaceRoot}/pawno/pawncc.exe"
      
"args": ["'${file}'""'-Dgamemodes'""'-;+'""'-(+'""'-d3'"], 
      
"group": { 
        
"kind""build"
        
"isDefault"true 
      
}, 
      
"isBackground"false
      
"presentation": { 
        
"reveal""silent"
        
"panel""dedicated" 
      
}, 
      
"problemMatcher""$pawncc
    

  ] 

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)