Portal SAMP
[Ajuda] DOF2 Open MP - 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] DOF2 Open MP (/showthread.php?tid=4204)



DOF2 Open MP - L10motos - 13/11/2023

Boa noite, será que alguem me ajudar? Erro no Open MP.










Citar:C:\Users\neuza\Downloads\Server\qawno\include\DOF2.inc(280) : warning 239: literal array/string passed to a non-const parameter


C:\Users\neuza\Downloads\Server\qawno\include\DOF2.inc(1061) : warning 213: tag mismatch: expected tag "bool", but found none ("_")


C:\Users\neuza\Downloads\Server\qawno\include\DOF2.inc(1061) : warning 202: number of arguments does not match definition


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1332) : error 017: undefined symbol "DOF2_Set"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1333) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1334) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1335) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1336) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1337) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1338) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1339) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1340) : error 017: undefined symbol "DOF2_FloatSet"


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1341) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1342) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1343) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1344) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1345) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1346) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1347) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1348) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1349) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1350) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1351) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1352) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1353) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1354) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1355) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1356) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?


C:\Users\neuza\Downloads\Server\gamemodes\1992.pwn(1357) : error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?





Compilation aborted.





Pawn compiler 3.10.11 Copyright © 1997-2006, ITB CompuPhase








26 Errors.



RE: DOF2 Open MP - pushline - 14/11/2023

Esses tempos dei uma atualizada pro compilador 3.10.10, veja se funciona pro openmp (3.10.11).

https://pastebin.com/dvyTVNPK


RE: DOF2 Open MP - xbruno1000x - 14/11/2023

DOF2_IntSet não existe. É DOF2_SetInt a função que você quer.


RE: DOF2 Open MP - White_Blue - 14/11/2023

1 - warning 239: literal array/string passed to a non-const parameter:
Esse compilador emite esse warning quando você não usa a palavra-chave "const" em uma string que não é modificada dentro da função passada como parâmetro para uma função.

Exemplos:
Código PHP:
Funcao(const string[]) {
      
// Nessa função a palavra-chave "const" deve ser usada, já que o conteúdo da string não é modificado dentro da função.
      
print(string);
      return 
1;



Código PHP:
Funcao(string[]) {
     
string "A"// Nessa função, caso eu usasse a palavra-chave "const" na string passada como parâmetro, o compilador emitiria um erro.
     
print(string);
     return 
1;


2 - error 017: undefined symbol "DOF2_IntSet"; did you mean "DOF2_IsSet"?:
DOF2_Set, DOF2_IntSet e DOF2_FloatSet são funções que não existem por padrão no DOF2, existem as funções DOF2_SetInt e DOF2_SetFloat .

3 - warning 213: tag mismatch: expected tag "bool", but found none ("_")
Provavelmente nesta linha do DOF2 existe alguma função que retorna um valor booleano porém não está usando a tag "bool".

Exemplo:
Código PHP:
bool:Funcao(bool:variavel) {
   
// Essa função deve conter a tag "bool" pois ela retorna um valor booleano(true/false).
   
return !variavel;