has alredy defined
#1

hi i have probleme i want add icon map i save it with tools but when i added it in my gamemods il have this error

Quote:

// --------------------------------- Pragma ----------------------------------------- //

#pragma unused ret_memcpy


// ---------------------------------- Includes -------------------------------------- //
#include <a_samp>
#include <dini>
#include <dudb>
// ---------------------------------- Define -------------------------------------- //

#define SERVER_USER_FILE_ACCOUNT "Account/%s.ini"
#define SERVER_USER_FILE_ACCOUNT_SAVEPOS "SavePos/%s.ini"

// Define Color

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_RED 0xAA3333AA
#define COLOR_LIME 0x10F441AA
#define COLOR_MAGENTA 0xFF00FFFF
#define COLOR_NAVY 0x000080AA
#define COLOR_AQUA 0xF0F8FFAA
#define COLOR_CRIMSON 0xDC143CAA
#define COLOR_FLBLUE 0x6495EDAA
#define COLOR_BISQUE 0xFFE4C4AA
#define COLOR_BLACK 0x000000AA
#define COLOR_CHARTREUSE 0x7FFF00AA
#define COLOR_BROWN 0XA52A2AAA
#define COLOR_CORAL 0xFF7F50AA
#define COLOR_GOLD 0xB8860BAA
#define COLOR_GREENYELLOW 0xADFF2FAA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_IVORY 0xFFFF82AA

// ---------------------------------- Foward ----------------------------------------//



// ---------------------------------- Variables -------------------------------------- //

// Var Compte

enum pInfo
{
pAdminLevel,
pCash,
pScore,
pSexe,
pAge,
pOrigine,
pLevel,
}
new PlayerInfo[MAX_PLAYERS][pInfo];
new gPlayerLogged[MAX_PLAYERS];

//----------------------------------- Objetc and Mapicon ------------------------------------------



// MAPICON
SetPlayerMapIcon(playerid, 1, 1684.44, -1343.44, 17.43, 1, 1);

// ---------------------------------- GAMESCRIPT -------------------------------------- //

Quote:

error 021: symbol already defined: "SetPlayerMapIcon"

Reply
#2

Put the "SetPlayerMapIcon" at public OnPlayerConnect(playerid) .
Reply
#3

thx
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)