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
And the includes that I use are these
If I put #include "sscanf2" instead of streamer I get symbol already defined: "Streamer_OnPlayerConnect"
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;
}
Code:
#include "a_samp"
#include "streamer"
#include "sscanf2"
#include "a_mysql"