already defined doesn't exist
#1

When I did put this in my gamemode and compiled it it did say

Код:
C:\Users\Julius\Documents\Grand Theft Auto Servers\San Andreas\samp03e_svr_win32.zip\gamemodes\grandlarc2.pwn(1994) : error 021: symbol already defined: "strcat"
Idont find strcat anywhere in the gamemode :/



pawn Код:
strcat(DialogText5, "{FF0A00}* No cheating or modifications of any kind that give you advantages over other players!(BANNABLE)\n\n* No flaming, racism or any sort of discrimination towards any other player!(BANNABLE)\n\n* No spamming/flooding chat for any reason!\n\n* Avoid the unnecessary use of sexual language (pussy, dick, etc.)!\n\n");
    strcat(DialogText5, "* The abuse of server bugs, such as RPG Bug is forbidden!(BANNABLE)\n\n* Spawn kill is allowed as long as it is not done with a Sea-Sparrow...\n\n ...In any race Spawn killing is strictly forbidden!\n");
    strcat(DialogText5, "\n* Use /report [ID/first letters of the offender's name] [reason] to report a cheater!\n\n{FFD200}Play Fair & Have Fun!");
Reply
#2

so weird
Reply
#3

it's simple lol
PHP код:
    
    strcat
(DialogText5"{FF0A00}* No cheating or modifications of any kind that give you advantages over other players!(BANNABLE)\n\n* No flaming, racism or any sort of discrimination towards any other player!(BANNABLE)\n\n* No spamming/flooding chat for any reason!\n\n* Avoid the unnecessary use of sexual language (pussy, dick, etc.)!\n\n");
    
strcat(DialogText5"* The abuse of server bugs, such as RPG Bug is forbidden!(BANNABLE)\n\n* Spawn kill is allowed as long as it is not done with a Sea-Sparrow...\n\n ...In any race Spawn killing is strictly forbidden!\n");
    
strcat(DialogText5"\n* Use /report [ID/first letters of the offender's name] [reason] to report a cheater!\n\n{FFD200}Play Fair & Have Fun!"); 
give some speces between first one like 4 space :
Reply
#4

Quote:
Originally Posted by мυ∂υℓ_вacнα
Посмотреть сообщение
it's simple lol
PHP код:
    
    strcat
(DialogText5"{FF0A00}* No cheating or modifications of any kind that give you advantages over other players!(BANNABLE)\n\n* No flaming, racism or any sort of discrimination towards any other player!(BANNABLE)\n\n* No spamming/flooding chat for any reason!\n\n* Avoid the unnecessary use of sexual language (pussy, dick, etc.)!\n\n");
    
strcat(DialogText5"* The abuse of server bugs, such as RPG Bug is forbidden!(BANNABLE)\n\n* Spawn kill is allowed as long as it is not done with a Sea-Sparrow...\n\n ...In any race Spawn killing is strictly forbidden!\n");
    
strcat(DialogText5"\n* Use /report [ID/first letters of the offender's name] [reason] to report a cheater!\n\n{FFD200}Play Fair & Have Fun!"); 
give some speces between first one like 4 space :
no difference. seriously
Reply
#5

Show you the part with you define your includes like #include <a_samp>
Reply
#6

pawn Код:
#include <irc>
#include <a_samp>
#include <core>
#include <ircfs>
#include <float>
#include <YSI\y_ini>
#include <streamer>
#include <sscanf2>
#include <ZCMD> //Like so!
#include <DynamicRadioStations>
#include "../include/gl_common.inc"
#include "../include/gl_spawns.inc"

#pragma tabsize 0

//----------------------------------------------------------

#define COLOR_WHITE         0xFFFFFFFF
#define COLOR_NORMAL_PLAYER 0xFFBB7777

#define CITY_LOS_SANTOS     0
#define CITY_SAN_FIERRO     1
#define CITY_LAS_VENTURAS   2
#define Skinid 1
#define Money 2
#define Faction 3
#define irc
#define STREAMER_TYPE_OBJECT (0)
#define STREAMER_TYPE_PICKUP (1)
#define STREAMER_TYPE_CP (2)
#define STREAMER_TYPE_RACE_CP (3)
#define STREAMER_TYPE_MAP_ICON (4)
#define STREAMER_TYPE_3D_TEXT_LABEL (5)
#define STREAMER_TYPE_AREA (6)

#define STREAMER_AREA_TYPE_CIRCLE (0)
#define STREAMER_AREA_TYPE_RECTANGLE (1)
#define STREAMER_AREA_TYPE_SPHERE (2)
#define STREAMER_AREA_TYPE_CUBE (3)
#define STREAMER_AREA_TYPE_POLYGON (4)

#define STREAMER_OBJECT_TYPE_GLOBAL (0)
#define STREAMER_OBJECT_TYPE_PLAYER (1)
#define STREAMER_OBJECT_TYPE_DYNAMIC (2)

#define GAMETEXT_COLOR 2 //Change this to change the color of the text. 0 = yellow(default), 1 = blue, 2 = green, 3 = red, 4 = purple, 5 = white, 6 = black.

#define COL_WHITE "{FFFFFF}"
#define COL_RED "{F81414}"
#define COL_GREEN "{00FF22}"

// Name that everyone will see
#define BOT_1_NICKNAME "Julius95Bot"
// Name that will only be visible in a whois
#define BOT_1_REALNAME "Julius95Bot"
// Name that will be in front of the hostname (username@hostname)
#define BOT_1_USERNAME "Julius95Bot"

#define BOT_2_NICKNAME "AdrenalineBot"
#define BOT_2_REALNAME "AdrenalineBot"
#define BOT_2_USERNAME "AdrenalineBot"

#define IRC_SERVER "exnet.fr.irc.tl"
#define IRC_PORT (6667)
#define IRC_CHANNEL "#Julius95"

// If your bot names are registered put a password here to identify them with
#define IRC_PASSWORD "test"
#define IRC_PASSWORD "test"

// Maximum number of bots in the filterscript
#define MAX_BOTS (2)

#define PLUGIN_VERSION "1.4.3"
Reply
#7

Remove
#include <float>
and
#include <core>
Reply
#8

NO difference...
Reply
#9

Never use
PHP код:
#pragma tabsize 0 
Delete it and fix your indentation errors.


Quote:
Originally Posted by ******
Посмотреть сообщение
You just answered your own question! There is a direct link between removing that warning and getting uncompilable code because you missed one brace somewhere and have no idea where. If you want to continue doing it, fine, but don't tell others to - we'd much rather have a community of people who can code properly!

http://forum.sa-mp.com/showthread.ph...66#post2152966
Reply
#10

Quote:
Originally Posted by gtakillerIV
Посмотреть сообщение
Better to remove it
do you know ven what does that work for ? I fix the loose edition error and please wait for my edit :
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)