[Ajuda] erro no console !
#1

Script[gamemodes/BEG.amx]: Run time error 19: "File or function is not found" Number of vehicle models: 0


eu sei que o erro esta nesta funзгo, porque quando removo ela funcionar normal
estou usando uma include chamada #include < cuf >

PHP код:
}
main()
{
    print(
"\n\n* Nicks proibidos!");
    print(
"* os seguintes nicks estгo proibidos de entrar no servidor:");
    print(
"\tcom[1-9], lpt[1-9], ipt[1-9], clock$, nul, aux, prn, con,\n\t\tcom1.aux.[a-zA-Z0-9]\n\n");
    
printfc(CONSOLE_GREY,"Total de Objetos: %d"CountDynamicObjects());
    
printfc(CONSOLE_GREY,"Total de Pickups: %d"CountDynamicPickups());
    
printfc(CONSOLE_GREY,"Total de Checkpoints: %d"CountDynamicCPs());
    
printfc(CONSOLE_GREY,"Total de Race Checkpoints: %d"CountDynamicRaceCPs());
    
printfc(CONSOLE_GREY,"Total de MapIcons: %d"CountDynamicMapIcons());
    
printfc(CONSOLE_GREY,"Total de TextLabels: %d"CountDynamic3DTextLabels());
    
printfc(CONSOLE_GREY,"Total de Areas: %d"CountDynamicAreas());
    
printc(CONSOLE_RED,"\n Brasil Vida Juvenil v.5");
    
printc(CONSOLE_GREY,"Servidor ligado com sucesso!");
    
printc(CONSOLE_WHITE"Seja bem vindo novamente McLouco_Moto!\n");
    
printc(CONSOLE_RED,    "\n  ######   #     #        #                                             ");
    
printc(CONSOLE_RED,      "  #     #  #     #        #                                                ");
    
printc(CONSOLE_GREY,     "  #     #  #     #        #      #####   #####   #####           ");
    
printc(CONSOLE_GREY,     "  ######   #     #        #      #    #  #    #  #               ");
    
printc(CONSOLE_GREY,     "  #     #   #   #   #     #      ####    #####   #   ##          ");
    
printc(CONSOLE_WHITE,    "  #     #    # #    #     #      #   #   #       #    #          ");
    
printc(CONSOLE_WHITE,    "  ######      #      #####       #    ## #        ####           \n"); 
Reply
#2

veja se todos os plugins estao carregando normalmente !
Reply
#3

Quote:
Originally Posted by mau.tito
Посмотреть сообщение
veja se todos os plugins estao carregando normalmente !
sim as 4 estгo carregando o erro e na que la funзгo
Reply
#4

Nunca usei essa include, mas tenta carregar pelo OnGameModeInit e veja se da erro
Reply
#5

Quote:
Originally Posted by iSmirnoff
Посмотреть сообщение
Nunca usei essa include, mas tenta carregar pelo OnGameModeInit e veja se da erro
nгo pegou deu o erro ainda no console


de uma olhada na include cuf

PHP код:
/*
    Copyright © 2012 cosmy
    Permission is hereby granted, free of charge, to any person
    obtaining a copy of this software and associated documentation
    files (the "Software"), to deal in the Software without
    restriction, including without limitation the rights to use,
    copy, modify, merge, publish, distribute, sublicense, and/or sell
    copies of the Software, and to permit persons to whom the
    Software is furnished to do so, subject to the following
    conditions:
    The above copyright notice and this permission notice shall be
    included in all copies or substantial portions of the Software.
    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
    EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
    OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
    NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
    HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
    WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
    FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    OTHER DEALINGS IN THE SOFTWARE.
*/
// Portions from yom
// For comptibility
#define CONSOLE_DEFAULT            0x0000 | 0x0007
#define CONSOLE_GREY            0x0000 | 0x0008
#define CONSOLE_BLUE            0x0001 | 0x0008
#define CONSOLE_GREEN            0x0002 | 0x0008
#define CONSOLE_LIGHTBLUE        0x0003 | 0x0008
#define CONSOLE_RED                0x0004 | 0x0008
#define CONSOLE_PINK            0x0005 | 0x0008
#define CONSOLE_YELLOW            0x0006 | 0x0008
#define CONSOLE_WHITE            0x0007 | 0x0008
#define BACKGROUND_GREY            0x0000 | 0x0080
#define BACKGROUND_BLUE            0x0010 | 0x0080
#define BACKGROUND_GREEN        0x0020 | 0x0080
#define BACKGROUND_LIGHTBLUE    0x0030 | 0x0080
#define BACKGROUND_RED            0x0040 | 0x0080
#define BACKGROUND_PINK            0x0050 | 0x0080
#define BACKGROUND_YELLOW        0x0060 | 0x0080    
#define BACKGROUND_WHITE        0x0070 | 0x0080    
native SetConsoleTextColors(colors);
native GetConsoleTextColors();
native SetConsoleCursorPos(xy);
native GetConsoleCursorPos(&x, &y);
#pragma unused g_console_colors
new g_console_colors;
enum e_console_color
{
    
BLACK,
    
BLUE,
    
GREEN,
    
AQUA,
    
RED,
    
PURPLE,
    
YELLOW,
    
WHITE,
    
GRAY,
    
LIGHTBLUE,
    
LIGHTGREEN,
    
LIGHTAQUA,
    
LIGHTRED,
    
LIGHTPURLE,
    
LIGHTYELLOW,
    
BRIGHTWHITE
}
/* printc(colors, const string[]) */
#define printc(%1,%2); \
{\
    
g_console_colors GetConsoleTextColors();\
    
SetConsoleTextColors(%1);\
    print(%
2);\
    
SetConsoleTextColors(g_console_colors);\
}
/* printfc(colors, const format[], {Float,_}:...) */
#define printfc(%1,%2); \
{\
    
g_console_colors GetConsoleTextColors();\
    
SetConsoleTextColors(%1);\
    
printf(%2);\
    
SetConsoleTextColors(g_console_colors);\
}
/* GetConsoleForegroundColor() */
#define GetConsoleForegroundColor() \
    
(GetConsoleTextColors() & 0xF)
/* GetConsoleBackgroundColor() */
#define GetConsoleBackgroundColor() \
    
(GetConsoleTextColors() >> 0xF)
/* SetConsoleForegroundColor(e_console_color:color) */
#define SetConsoleForegroundColor(%1) \
    
SetConsoleTextColors(GetConsoleBackgroundColor() << _:%1)
/* SetConsoleBackgroundColor(e_console_color:color) */
#define SetConsoleBackgroundColor(%1) \
    
SetConsoleTextColors(_:%<< GetConsoleForegroundColor())
/* SetConsoleColors(e_console_color:foreground, e_console_color:background) */
#define SetConsoleColors(%1,%2) \
    
SetConsoleTextColors(_:%<< _:%1
Reply
#6

essa include usa plugin?

se usar coloca ele.

podera ser outro plugin faltando de outra include, veja direito.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)