Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

error 021: symbol already defined: "SSCANF_OnPlayerCo

$
0
0
EDIT: Nvm, I had two OnPlayerConnect on the gamemode

Hello, I get this error when I compile and I don't know why.

The public is

Code:

public OnPlayerConnect(playerid)
{
    new query[520], nombre[MAX_PLAYER_NAME];
    GetPlayerName(playerid, nombre, sizeof(nombre));
    mysql_format(MySQL, query, sizeof(query), "SELECT * FROM `rc_cuentas` WHERE `Usuario`='%s'", nombre);
    mysql_pquery(MySQL, query, "VerificarUsuario","d", playerid);
    SetPlayerColor(playerid, 0xBFC0C200);
    if(!IsValidName(nombre) || strfind(nombre, "_", true) == -1) return Kick(playerid);
    ResetearVariables(playerid);
    return 1;
}

And the includes that I use are these

Code:

#include "a_samp"
#include "streamer"
#include "sscanf2"
#include "a_mysql"

If I put #include "sscanf2" instead of streamer I get symbol already defined: "Streamer_OnPlayerConnect"

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>