Portal SAMP
[Ajuda] Erro warning 207: unknown #pragma - Versão de Impressão

+- Portal SAMP (https://portalsamp.com)
+-- Fórum: SA-MP (https://portalsamp.com/forumdisplay.php?fid=5)
+--- Fórum: Área de suporte (https://portalsamp.com/forumdisplay.php?fid=6)
+--- Tópico: [Ajuda] Erro warning 207: unknown #pragma (/showthread.php?tid=1912)



Erro warning 207: unknown #pragma - J.E - 09/12/2021

C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(18) : warning 207: unknown #pragma
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Código:
#pragma disablerecursion



RE: Erro warning 207: unknown #pragma - xbruno1000x - 09/12/2021

Provavelmente é do compilador.

Tente o Community Compiler:
https://github.com/pawn-lang/compiler/releases


RE: Erro warning 207: unknown #pragma - J.E - 09/12/2021

Utilizei esse compilador que vc me mandou mas apareceu isso,

C:\Users\Joaozin\Desktop\Serv\GM\pawno\include\DOF2.inc(265) : warning 214: possibly a "const" array argument was intended: "file"
C:\Users\Joaozin\Desktop\Serv\GM\pawno\include\DOF2.inc(280) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\pawno\include\DOF2.inc(453) : warning 214: possibly a "const" array argument was intended: "tag"
C:\Users\Joaozin\Desktop\Serv\GM\pawno\include\DOF2.inc(1337) : warning 214: possibly a "const" array argument was intended: "string"
C:\Users\Joaozin\Desktop\Serv\GM\pawno\include\DOF2.inc(1345) : warning 214: possibly a "const" array argument was intended: "c"
C:\Users\Joaozin\Desktop\Serv\GM\pawno\include\DOF2.inc(1663) : warning 214: possibly a "const" array argument was intended: "key"
C:\Users\Joaozin\Desktop\Serv\GM\pawno\include\DOF2.inc(1805) : warning 214: possibly a "const" array argument was intended: "buf"
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(18) : warning 207: unknown #pragma
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(67) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(83) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(83) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(83) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(89) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(89) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(89) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(279) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(280) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(281) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(282) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(289) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(289) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(289) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(295) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(295) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(295) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(302) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(312) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(314) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(315) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(316) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(323) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(323) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(323) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(330) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(330) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(330) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(336) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(400) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(400) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(400) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(400) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(409) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(409) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(409) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(417) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(417) : warning 239: literal array/string passed to a non-const parameter
C:\Users\Joaozin\Desktop\Serv\GM\gamemodes\gm.pwn(417) : warning 239: literal array/string passed to a non-const parameter
Pawn compiler 3.10.10 Copyright © 1997-2006, ITB CompuPhase


47 Warnings.


RE: Erro warning 207: unknown #pragma - xbruno1000x - 09/12/2021

Adicione no topo do GM:



Código:
#pragma warning disable 207
#pragma warning disable 214
#pragma warning disable 239



RE: Erro warning 207: unknown #pragma - BrunoDC - 18/07/2023

(09/12/2021 16:54)xbruno1000x Escreveu: Adicione no topo do GM:



Código:
#pragma warning disable 207
#pragma warning disable 214
#pragma warning disable 239

tambem conseguir com isto vlws