[Ajuda] 26 erros (nгo й simples assim)
#1

Bom pessoal, eu baixei o FS lux admin e talz, ele vem com uma include do prуprio servidor, ok... Outro FS editado TOTALMENTE com base nesse FS admin (by luxurion), tem a include totalmente editada tbm, eu nгo axo o erro, quando eu coloco a include no servidor da os 26 erros, tenho uma ideia do que seja: o FS tem alguma linha e a include a mesma linha, quando ambas se correspondem funciona, caso contrario = FAIL, me ajudem...

Apenas coloquem em um GM teste e tente me ajuda =( sa poha n ta fбcil
Includes.rar
Reply
#2

Coloca o cуdigo e os erros..
Reply
#3

Esta faltando uma { ou } algures...
Reply
#4

Ao compilar a include: OK
Ao compilar a FS admin+include: OK
Ao compilar GM+include: FAIL

@CODE
Quote:

#if defined _e_admin_included
#endinput
#endif
#define _e_admin_included

#include <a_samp>
#include <dutils>
#include <dini>

//------------------------------------------------
#define ADMIN_FOLDER "SAMP Admin" //The main admin system directory/folder

#define CONFIG_FOLDER "Configurations" //The admin system configuration directory/folder

#define LOGS_FOLDER ""ADMIN_FOLDER"/Logs" //path saving logs

#define ACCOUNTS_FOLDER "Accounts" //path saving user data

#define PATH_ACCOUNTS ""ADMIN_FOLDER"/"ACCOUNTS_FOLDER"/%s.ini" //path for saving users data

#define PATH_TEMPBAN ""ADMIN_FOLDER"/Tempbans.ini" //path for saving temp bans

#define PATH_AKA ""ADMIN_FOLDER"/aka.ini" //path for saving player akas

#define PATH_SETTINGS ""ADMIN_FOLDER"/"CONFIG_FOLDER"/Settings.ini" //path for the main config file

#define PATH_FORBIDENNAMES ""ADMIN_FOLDER"/"CONFIG_FOLDER"/ForbiddenNames.ini" //path for forbidden names

#define PATH_FORBIDENWORDS ""ADMIN_FOLDER"/"CONFIG_FOLDER"/ForbiddenWords.ini" //path for forbidden words

#define PATH_FORBIDENWEAPONS ""ADMIN_FOLDER"/"CONFIG_FOLDER"/ForbiddenWeapons.ini" //path for forbidden words

#define PATH_FORBIDENPARTOFNAMES ""ADMIN_FOLDER"/"CONFIG_FOLDER"/ForbiddenPartNames.ini" //path for forbidden part of names

#define PATH_BADRCONLOGINS ""ADMIN_FOLDER"/"CONFIG_FOLDER"/BadRconLogins.ini" //path saving bad rcon logins
//------------------------------------------------

#define dUser(%1).( udb_User(%1,
#define dUserINT(%1).( udb_UserInt(%1,
#define dUserSet(%1).( udb_UserSet(%1,
#define dUserSetINT(%1).( udb_UserSetInt(%1,
#define dUserSetFLOAT(%1).( udb_UserSetFloat(%1,
#define dUserFLOAT(%1).( udb_UserFloat(%1,

stock udb_hash(buf[])
{
new length=strlen(buf);
new s1 = 1;
new s2 = 0;
new n;
for (n=0; n<length; n++)
{
s1 = (s1 + buf[n]) % 65521;
s2 = (s2 + s1) % 65521;
}
return (s2 << 16) + s1;
}

stock udb_encode(nickname[])
{
new tmp[MAX_STRING];
set(tmp,nickname);
tmp=strreplace("_","_00",tmp);
tmp=strreplace(";","_01",tmp);
tmp=strreplace("!","_02",tmp);
tmp=strreplace("/","_03",tmp);
tmp=strreplace("\\","_04",tmp);
tmp=strreplace("[","_05",tmp);
tmp=strreplace("]","_06",tmp);
tmp=strreplace("?","_07",tmp);
tmp=strreplace(".","_08",tmp);
tmp=strreplace("*","_09",tmp);
tmp=strreplace("<","_10",tmp);
tmp=strreplace(">","_11",tmp);
tmp=strreplace("{","_12",tmp);
tmp=strreplace("}","_13",tmp);
tmp=strreplace(" ","_14",tmp);
tmp=strreplace("\"","_15",tmp);
tmp=strreplace(":","_16",tmp);
tmp=strreplace("|","_17",tmp);
tmp=strreplace("=","_18",tmp);
return tmp;
}

stock udb_decode(nickname[])
{
new tmp[MAX_STRING];
set(tmp,nickname);
tmp=strreplace("_01",";",tmp);
tmp=strreplace("_02","!",tmp);
tmp=strreplace("_03","/",tmp);
tmp=strreplace("_04","\\",tmp);
tmp=strreplace("_05","[",tmp);
tmp=strreplace("_06","]",tmp);
tmp=strreplace("_07","?",tmp);
tmp=strreplace("_08",".",tmp);
tmp=strreplace("_09","*",tmp);
tmp=strreplace("_10","<",tmp);
tmp=strreplace("_11",">",tmp);
tmp=strreplace("_12","{",tmp);
tmp=strreplace("_13","}",tmp);
tmp=strreplace("_14"," ",tmp);
tmp=strreplace("_15","\"",tmp);
tmp=strreplace("_16",":",tmp);
tmp=strreplace("_17","|",tmp);
tmp=strreplace("_18","=",tmp);
tmp=strreplace("_00","_",tmp);
return tmp;
}

stock udb_Exists(nickname[])
{
new tmp[MAX_STRING];
format(tmp,sizeof(tmp),PATH_ACCOUNTS,udb_encode(ni ckname));
return fexist(tmp);
}

stock udb_Remove(nickname[])
{
new tmp[MAX_STRING];
format(tmp,sizeof(tmp),PATH_ACCOUNTS,udb_encode(ni ckname));
return dini_Remove(tmp);
}

stock udb_UserSetInt(nickname[],key[],value)
{
new fname[MAX_STRING];
format(fname,sizeof(fname),PATH_ACCOUNTS,udb_encod e(nickname));
return dini_IntSet(fname,key,value);
}

stock udb_UserSetFloat(nickname[],key[],Float:value)
{
new fname[MAX_STRING];
format(fname,sizeof(fname),PATH_ACCOUNTS,udb_encod e(nickname));
return dini_FloatSet(fname,key,value);
}

stock udb_UserSet(nickname[],key[],value[])
{
new fname[MAX_STRING];
format(fname,sizeof(fname),PATH_ACCOUNTS,udb_encod e(nickname));
return dini_Set(fname,key,value);
}

stock udb_User(nickname[],key[])
{
new fname[MAX_STRING];
format(fname,sizeof(fname),PATH_ACCOUNTS,udb_encod e(nickname));
format(fname,sizeof(fname),dini_Get(fname,key));
return fname;
}

stock Float:udb_UserFloat(nickname[],key[])
{
new fname[MAX_STRING];
format(fname,sizeof(fname),PATH_ACCOUNTS,udb_encod e(nickname));
return dini_Float(fname,key);
}

stock udb_UserInt(nickname[],key[])
{
new fname[MAX_STRING];
format(fname,sizeof(fname),PATH_ACCOUNTS,udb_encod e(nickname));
return dini_Int(fname,key);
}
stock udb_Create(nickname[])
{
if (udb_Exists(nickname)) return false;
new fname[MAX_STRING];
format(fname,sizeof(fname),PATH_ACCOUNTS,udb_encod e(nickname));
dini_Create(fname);
return true;
}

stock udb_RenameUser(nickname[],newnick[])
{
new oldfname[MAX_STRING];
new newfname[MAX_STRING];
format(oldfname,sizeof(oldfname),PATH_ACCOUNTS,udb _encode(nickname));
format(newfname,sizeof(newfname),PATH_ACCOUNTS,udb _encode(newnick));
return frenametextfile(oldfname,newfname);
}

stock IsPlayerLAdmin(playerid)
{
new name[MAX_PLAYER_NAME];
new file[256], tmp, tmp2;

GetPlayerName(playerid, name, sizeof(name));

format(file,256,PATH_ACCOUNTS,udb_encode(name));

tmp = dini_Int(file,"level");
tmp2 = dini_Int(file,"loggedin");

if( (IsPlayerConnected(playerid)) && (tmp > 0) && (tmp2 == 1)) return true;
else return false;
}

stock IsPlayerAdminLevel(playerid, level)
{
new name[MAX_PLAYER_NAME];
new file[256], tmp, tmp2;

GetPlayerName(playerid, name, sizeof(name));

format(file,256,PATH_ACCOUNTS,udb_encode(name));

tmp = dini_Int(file,"level");
tmp2 = dini_Int(file,"loggedin");

if( (IsPlayerConnected(playerid)) && (tmp >= level) && (tmp2 != 0)) return true;
else return false;
}

stock IsPlayerLVIP(playerid)
{
new name[MAX_PLAYER_NAME];
new file[256], tmp, tmp2;

GetPlayerName(playerid, name, sizeof(name));

format(file,256,PATH_ACCOUNTS,udb_encode(name));

tmp = dini_Int(file,"AccountType");
tmp2 = dini_Int(file,"loggedin");

if( (IsPlayerConnected(playerid)) && (tmp > 0) && (tmp2 == 1)) return true;
else return false;
}

stock IsPlayerVIPLevel(playerid, level)
{
new name[MAX_PLAYER_NAME];
new file[256], tmp, tmp2;

GetPlayerName(playerid, name, sizeof(name));

format(file,256,PATH_ACCOUNTS,udb_encode(name));

tmp = dini_Int(file,"AccountType");
tmp2 = dini_Int(file,"loggedin");

if( (IsPlayerConnected(playerid)) && (tmp >= level) && (tmp2 != 0)) return true;
else return false;
}

stock IsPlayerLogged(playerid)
{
new name[MAX_PLAYER_NAME];
new file[256], tmp;

GetPlayerName(playerid, name, sizeof(name));

format(file,256,PATH_ACCOUNTS,udb_encode(name));

tmp = dini_Int(file,"loggedin");

if( (IsPlayerConnected(playerid)) && (tmp == 1)) return true;
else return false;
}

stock IsPlayerBanned(playerid)
{
new name[MAX_PLAYER_NAME];
new file[256], tmp;

GetPlayerName(playerid, name, sizeof(name));

format(file,256,PATH_ACCOUNTS,udb_encode(name));

tmp = dini_Int(file,"Banned");

if( (IsPlayerConnected(playerid)) && (tmp == 1)) return true;
else return false;
}

stock IsPlayerRegistered(playerid)
{
new name[MAX_PLAYER_NAME];
new file[256], tmp;

GetPlayerName(playerid, name, sizeof(name));

format(file,256,PATH_ACCOUNTS,udb_encode(name));

tmp = dini_Int(file,"Registered");

if( (IsPlayerConnected(playerid)) && (tmp == 1)) return true;
else return false;
}

@ERRORS
Quote:

Current directory: C:\Users\Anonymous\Downloads\Compressed\Bloody Vegas\Bloody Vegas\gamemodes
Teste.pwn(1623) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(1627) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(1633) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(1765) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(1836) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(1885) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(1915) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(1937) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(2529) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(256 : error 047: array sizes do not match, or destination array is too small
Teste.pwn(2660) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(2984) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(2989) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(3844) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(3865) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(4203) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(4610) : warning 215: expression has no effect
Teste.pwn(4633) : warning 215: expression has no effect
Teste.pwn(4716) : warning 215: expression has no effect
Teste.pwn(5047) : warning 215: expression has no effect
Teste.pwn(510 : warning 215: expression has no effect
Teste.pwn(512 : warning 215: expression has no effect
Teste.pwn(9862) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(9862) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(11049) : error 021: symbol already defined: "strtok"
Teste.pwn(11064) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(11336) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(11576) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(11715) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(11740) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(11777) : error 047: array sizes do not match, or destination array is too small
Teste.pwn(11804) : error 047: array sizes do not match, or destination array is too small

Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


26 Errors.
================ READY ================

Nгo adianta, tentei mas nгo vai =/
Nгi nenhuma chave aberta....

@EDIT
Se quiserem testar, copia o code e salva como include e coloca no GM... aki n deu =/
Reply
#5

a FS Q vc baixou pode estar faltando um }
Reply
#6

Quote:
Originally Posted by JuniorTheDM
Посмотреть сообщение
a FS Q vc baixou pode estar faltando um }
Eu sei, porйm como falta um '}' na include se a FS compila normalmente com a include?
Reply
#7

Qual й a include q ta dando problema
Reply
#8

http://tabulador.medianewsonline.com/
Reply
#9

Quote:
Originally Posted by JuniorTheDM
Посмотреть сообщение
Qual й a include q ta dando problema
A que eu postei
<admin>
Reply
#10

Quote:
Originally Posted by Bruno13
Посмотреть сообщение
Nгo й simplismente chave, й algum code que forзa esses erros, testei no site e ainda assim continua mas a INCLUDE compila normal e na FS tbm mas n no GM ou outro FS
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)