[Ajuda] Erro ao converter para DOF2
#1

Usei o conversor de dini para dof2 de um colega daqui.
Ta blz, ele converte certinho.
Mas ai quando eu vo compilar da erros:

Quote:

C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(265) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(271) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(319) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(330) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(330) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(377) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(562) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(681) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(68 : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(711) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(784) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(839) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(854) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(861) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(86 : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(875) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(882) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(889) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(896) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(903) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(910) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(917) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(1022) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(1176) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(1249) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(1402) : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\CityLifeCrazy\pawno\include\ DOF2.inc(144 : warning 219: local variable "file" shadows a variable at a preceding level
C:\Users\USER\Desktop\teste.pwn(4683) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(4684) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(4685) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(4686) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(4687) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(468 : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(4689) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(469 : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(4699) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(4700) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(4697) : warning 204: symbol is assigned a value that is never used: "index"
C:\Users\USER\Desktop\teste.pwn(6370) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(6370) : error 033: array must be indexed (variable "cmd")
C:\Users\USER\Desktop\teste.pwn(6445) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(6445) : error 033: array must be indexed (variable "tmp")
C:\Users\USER\Desktop\teste.pwn(6630) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(6630) : error 033: array must be indexed (variable "tmp")
C:\Users\USER\Desktop\teste.pwn(6652) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(6652) : error 033: array must be indexed (variable "tmp")
C:\Users\USER\Desktop\teste.pwn(6923) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(6923) : error 033: array must be indexed (variable "tmp")
C:\Users\USER\Desktop\teste.pwn(729 : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(729 : error 033: array must be indexed (variable "tmp")
C:\Users\USER\Desktop\teste.pwn(7487) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(7487) : error 033: array must be indexed (variable "tmp")
C:\Users\USER\Desktop\teste.pwn(7493) : error 017: undefined symbol "strtok"
C:\Users\USER\Desktop\teste.pwn(7493) : error 033: array must be indexed (variable "tmp")

O Pior e que tem umas ali que tao dando erro em define
por exemplo o 1° erro:

#define Quartel 25

Aguardando.
Reply
#2

Defina strtok e a variбvel file jб foi definida...
Reply
#3

Quote:
Originally Posted by Los
Посмотреть сообщение
Defina strtok e a variбvel file jб foi definida...
@ edit

deletei:
new file[128];
e funcionou.
Agora vou definir strtok.
vlw lуs!
+REP
Reply
#4

Define sua Strtok

pawn Код:
strtok(const string[], &index)
{
    new length = strlen(string);
    while ((index < length) && (string[index] <= ' '))
    {
        index++;
    }
 
    new offset = index;
    new result[20];
    while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
    {
        result[index - offset] = string[index];
        index++;
    }
    result[index - offset] = EOS;
    return result;
}
sua variбvel file jб estб definida.
Reply
#5

Quote:

C:\Users\USER\Desktop\teste.pwn(5435) : error 035: argument type mismatch (argument 1)
C:\Users\USER\Desktop\teste.pwn(5435) : error 020: invalid symbol name ""
C:\Users\USER\Desktop\teste.pwn(5435) : error 029: invalid expression, assumed zero
C:\Users\USER\Desktop\teste.pwn(5435) : fatal error 107: too many error messages on one line

linha

format(file, sizeof(file), PASTA_CONTAS, aname);
Reply
#6

Manda o Cуdigo Todo.
Reply
#7

code:

Quote:

new antibot[128];
GetPlayerName(playerid, antibot, sizeof(antibot));
if(strcmp(antibot, "aux", true) == 0) {Ban(playerid);}
if(DOF2_GetInt("proibidos.ini", antibot) == 1)
{
new string[128];
format(string, sizeof(string), "|CLC Admin|{FFFFFF} O Administrador [L.M]Guardi?o kickou voc? por est?r com um nick proibido[%s]", antibot);
SendClientMessage(playerid, 0xFF0000AA, string);
kick[playerid] = 1;
SetPlayerColor(playerid,0xFFFFFFAA);
Kick(playerid);
return 1;
}

Reply
#8

Quote:
Originally Posted by WotusPower
Посмотреть сообщение
code:
pawn Код:
new antibot[128];
GetPlayerName(playerid, antibot, sizeof(antibot));
if(strcmp(antibot, "aux", true) == 0) {Ban(playerid);}
if(DOF2_GetInt("proibidos.ini", antibot) == 1)
{
new string[128];
format(string, sizeof(string), "|CLC Admin|{FFFFFF} O Administrador [L.M]Guardi?o kickou voc? por est?r com um nick proibido[%s]", antibot);
SendClientMessage(playerid, 0xFF0000AA, string);
kick[playerid] = 1;
SetPlayerColor(playerid,0xFFFFFFAA);
Kick(playerid);
return 1;
}
Oqe tem a ver com o topico ? Oo
Reply
#9

Quote:
Originally Posted by WotusPower
Посмотреть сообщение
code:
128 para definir um nick? '--

Acho que Agora Vai '-'
PHP код:
new antibot[MAX_PLAYER_NAME]; 
GetPlayerName(playeridantibotsizeof(antibot)); 
if(
strcmp(antibot"aux"true) == 0) {Ban(playerid);} 
if(
DOF2_GetInt("proibidos.ini"antibot) == 1
{     
    new 
string[128]; 
    
format(stringsizeof(string), "|CLC Admin|{FFFFFF} O Administrador [L.M]Guardiгo kickou vocк por estar com um nick proibido[%s]"antibot); 
    
SendClientMessage(playerid0xFF0000AAstring); 
    
kick[playerid] = 1
    
SetPlayerColor(playerid,0xFFFFFFAA); 
    
Kick(playerid); 
    return 
1

Reply
#10

Quote:
Originally Posted by DanDRT
Посмотреть сообщение
128 para definir um nick? '--

Acho que Agora Vai '-'
PHP код:
new antibot[MAX_PLAYER_NAME]; 
GetPlayerName(playeridantibotsizeof(antibot)); 
if(
strcmp(antibot"aux"true) == 0) {Ban(playerid);} 
if(
DOF2_GetInt("proibidos.ini"antibot) == 1
{     
    new 
string[128]; 
    
format(stringsizeof(string), "|CLC Admin|{FFFFFF} O Administrador [L.M]Guardiгo kickou vocк por estar com um nick proibido[%s]"antibot); 
    
SendClientMessage(playerid0xFF0000AAstring); 
    
kick[playerid] = 1
    
SetPlayerColor(playerid,0xFFFFFFAA); 
    
Kick(playerid); 
    return 
1

Leia.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)