Sziasztok letöltöttem a fórumról a K9 Unit Rendõr módot de mikor átkonvertálnám amx-be akkor ezeket a hibákat adja:
Hiba:
C:\\Users\\Exe\\Desktop\\SAmp szeró\\pawno\\include\\InfoBox.inc(76) : error 021: symbol already defined: \"FixGameString\"
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(74) : warning 213: tag mismatch
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(75) : warning 213: tag mismatch
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(76) : warning 213: tag mismatch
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(77) : warning 213: tag mismatch
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(78) : warning 213: tag mismatch
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(79) : warning 213: tag mismatch
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(80) : warning 213: tag mismatch
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(632) : warning 219: local variable \"file\" shadows a variable at a preceding level
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(656) : warning 219: local variable \"file\" shadows a variable at a preceding level
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(693) : warning 202: number of arguments does not match definition
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(900) : warning 213: tag mismatch
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(996) : warning 202: number of arguments does not match definition
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(996) : warning 202: number of arguments does not match definition
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(996) : warning 202: number of arguments does not match definition
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(1367) : warning 213: tag mismatch
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(2289) : warning 204: symbol is assigned a value that is never used: \"str\"
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(2440) : warning 219: local variable \"file\" shadows a variable at a preceding level
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(2480) : warning 219: local variable \"file\" shadows a variable at a preceding level
C:\\Users\\Exe\\Desktop\\SAmp szeró\\gamemodes\\MHM3.pwn(2757) : warning 203: symbol is never used: \"Regisztralva\"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
Gamemod:
http://pastebin.com/L6v1GkkzInfoBox.inc:
/**********************************
* *
* Készítette: FranK (Csabesz) *
* Verzió: 0.1 *
* Kiadva: 20/11/2010 *
* *
**********************************/
#if defined _InfoBox_included
#endinput
#endif
#define _InfoBox_included
#include <a_samp>
/*
native InfoTextDrawCreate(playerid, text[]);
*/
// By GameStar
#define GameTextForPlayerEx(%1,%2,%3,%4) GameTextForPlayer(%1,FixGameString(%2),%3,%4)
#define GameTextForAllEx(%1,%2,%3) GameTextForPlayer(FixGameString(%1),%2,%3)
#define TextDrawCreateEx(%1,%2,%3) TextDrawCreate(%1,%2,FixGameString(%3))
#define CreateMenuEx(%1,%2,%3,%4,%5,%6) CreateMenu(FixGameString(%1),%2,%3,%4,%5,%6)
#define SetMenuColumnHeaderEx(%1,%2,%3) SetMenuColumnHeader(%1,%2,FixGameString(%3))
#define AddMenuItemEx(%1,%2,%3) AddMenuItem(%1,%2,FixGameString(%3))
#define TextDrawSetStringEx(%1,%2) TextDrawSetString(%1,FixGameString(%2))
// By GameStar
static chlist[][0]={
\"¨\",\"‘\",\"ö\",\"Ö\",
\"¬\",\"\",\"ü\",\"Ü\",
\"¦\",\"¬\",\"ó\",\"Ó\",
\"§\",\"\",\"õ\",\"Õ\",
\"ª\",\"“\",\"ú\",\"Ú\",
\"¾\",\"‡\",\"é\",\"É\",
\"˜\",\"\",\"á\",\"Á\",
\"«\",\"·\",\"û\",\"Û\",
\"¢\",\"‹\",\"í\",\"Í\"
};
//==============================================================================
//By FranK(Csabesz)
stock InfoTextDrawCreate ( playerid, text[ ] )
{
new Text:MSG = TextDrawCreateEx ( 25, 100.0, text );
TextDrawUseBox ( MSG, 1 );
TextDrawBoxColor ( MSG, 0x000000AA );
TextDrawTextSize ( MSG, 215.0, -1 );
TextDrawAlignment ( MSG, 0 );
TextDrawBackgroundColor ( MSG, 0x000000ff );
TextDrawFont ( MSG, 1 );
TextDrawLetterSize ( MSG, 0.35, 1.5 );
TextDrawColor ( MSG, 0xffffffff );
TextDrawSetOutline ( MSG, 1 );
TextDrawSetProportional ( MSG, 1 );
InfoTextForPlayer ( playerid, MSG, 6000 );
}
//By FranK(Csabesz)
forward DestroyTextTimer ( Text:text );
public DestroyTextTimer ( Text:text ) return TextDrawDestroy ( text );
//By FranK(Csabesz)
forward InfoTextForPlayer ( playerid, Text:text, time );
public InfoTextForPlayer ( playerid, Text:text, time )
{
TextDrawShowForPlayer ( playerid, text );
SetTimerEx ( \"DestroyTextTimer\", time, 0, \"i\", _:text );
}
//By GameStar
stock FixGameString(const string[])
{
// Tárolók létrehozása
new index,
dest[256];
// Karakterlánc átmásolása
strmid(dest,string,0,strlen(string),sizeof dest);
// Végiglépkedünk a karaktereken
for(index = 0; index < strlen(dest); index++)
{
// Végiglépkedünk a karaktertömbön
for(new idx = 0; idx < sizeof(chlist); idx++)
{
// Ha az indexelt karakterek egyeznek
if(dest[index] == chlist[idx][0])
{
// Javítjuk
dest[index] = chlist[idx-2][0];
}
}
}
// Visszatérés
return dest;
}
//==============================================================================
Nem tudjátok mi lehet a gond?