[Ajuda] Conversгo Dini - Dof2
#1

Bem gente tentei trocar de Dini para dof, primeiro troquei o que й Dini para DOF Pelo Ctrl H ai nгo deu, sу que ai usei um conversor, e deu os mesmos erros, ai eu redefi stock por algum motivo no pawn que eu uso, nгo precisava definir ele, ai eu defini ele novamente, e com isso diminuiu um pouco os erros.. agora os warning й tudo na include..

Код:
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(194) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(203) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(255) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(267) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(288) : warning 219: local variable "file" shadows a variable at a preceding level

D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(432) : warning 219: local variable "file" shadows a variable at a preceding level

D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(526) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(533) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(550) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(606) : warning 219: local variable "file" shadows a variable at a preceding level

D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(654) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(668) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(675) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(682) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(689) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(696) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(703) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(710) : warning 219: local variable "file" shadows a
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(710) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(717) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(724) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(731) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(836) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(941) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(1010) : warning 219: local variable "file" shadows a variable at a preceding level

D:\GM BWL Versгo 2.2 0.3x\gamemodes\bwldOF2.pwn(11727) : warning 202: number of arguments does not match definition

D:\GM BWL Versгo 2.2 0.3x\gamemodes\bwldOF2.pwn(15744) : error 075: input line too long (after substitutions)

D:\GM BWL Versгo 2.2 0.3x\gamemodes\bwldOF2.pwn(15745) : error 017: undefined symbol "IsPlayer"
D:\GM BWL Versгo 2.2 0.3x\gamemodes\bwldOF2.pwn(15746) : error 017: undefined symbol "Admin"
D:\GM BWL Versгo 2.2 0.3x\gamemodes\bwldOF2.pwn(15746) : error 029: invalid expression, assumed zero

D:\GM BWL Versгo 2.2 0.3x\gamemodes\bwldOF2.pwn(21304) : error 075: input line too long (after substitutions)

Pawn compiler 3.2.3664                          Copyright © 1997-2006, ITB CompuPhase


5 Errors.
Nas linhas
pawn Код:
format(file, sizeof(file), PASTA_CONTAS, aname);

if(DOF2_GetInt(file, "Profissao") == Paramedico || DOF2_GetInt(file, "Profissao") == Guarda || DOF2_GetInt(file, "Profissao") == Policial_R  || DOF2_GetInt(file, "Profissao") == Departamentos || DOF2_GetInt(file, "Profissao") == Policial_C || DOF2_GetInt(file, "Profissao") == Policial_F || DOF2_GetInt(file, "Profissao") == Exercito || DOF2_GetInt(file, "Profissao") == BOPE || DOF2_GetInt(file, "Profissao") == Swat || DOF2_GetInt(file, "Profissao") == Marinha || DOF2_GetInt(file, "aAdmin") == 1 || IsPlayerAdmin(playerid)){
Reply
#2

#define dini_Exists DOF2_FileExists
#define dini_Remove DOF2_RemoveFile
#define dini_Create DOF2_CreateFile
#define dini_Set DOF2_SetString
#define dini_Get DOF2_GetString
#define dini_IntSet DOF2_SetInt
#define dini_Int DOF2_GetInt
#define dini_BoolSet DOF2_SetBool
#define dini_Bool DOF2_GetBool
#define dini_FloatSet DOF2_SetFloat
#define dini_Float DOF2_GetFloat
#define dini_Unset DOF2_Unset
#define dini_Isset DOF2_IsSet
Reply
#3

Os erros arrumei, era porque a linha estava grande kkk',
Agora os Warnings continuam.,.

Код:
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(194) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(203) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(255) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(267) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(288) : warning 219: local variable "file" shadows a variable at a preceding level

D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(432) : warning 219: local variable "file" shadows a variable at a preceding level

D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(526) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(533) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(550) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(606) : warning 219: local variable "file" shadows a variable at a preceding level

D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(654) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(668) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(675) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(682) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(689) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(696) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(703) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(710) : warning 219: local variable "file" shadows a
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(710) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(717) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(724) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(731) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(836) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(941) : warning 219: local variable "file" shadows a variable at a preceding level
D:\GM BWL Versгo 2.2 0.3x\pawno\include\DOF2.inc(1010) : warning 219: local variable "file" shadows a variable at a preceding level
Se alguйm puder ajudar... agradeзo.;
Reply
#4

Poste o cуdigo.. Esses Warnings querem dizer que vocк jб criou "file" uma vez (que ela jб foi definida antes)... Poste o cуdigo que eu arrumo pra ti
Reply
#5

Quote:
Originally Posted by BieeelEvolution
Посмотреть сообщение
#define dini_Exists DOF2_FileExists
#define dini_Remove DOF2_RemoveFile
#define dini_Create DOF2_CreateFile
#define dini_Set DOF2_SetString
#define dini_Get DOF2_GetString
#define dini_IntSet DOF2_SetInt
#define dini_Int DOF2_GetInt
#define dini_BoolSet DOF2_SetBool
#define dini_Bool DOF2_GetBool
#define dini_FloatSet DOF2_SetFloat
#define dini_Float DOF2_GetFloat
#define dini_Unset DOF2_Unset
#define dini_Isset DOF2_IsSet
Fazendo isso deve dar, se nгo der resete tudo que modificou e define denovo que deve dar.
Reply
#6

cara isso e complicado pq o dof2 usa a var "file" isso vc vai ter que trocar a var file do seu gm pra outro nome e depois subistitui oq vai demorar muito ! Mais vc que sabe
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)