Error server
#1

I got a script, but he got a bug


when i login thats show me that and i can't register/login.

please help me
Reply
#2

Show us OnPlayerConnect please.
Reply
#3

If you write code that is in the public onplayerconnect here can help.
Reply
#4

Code.
Reply
#5

i think it's this one:
Quote:

public OnPlayerConnect(playerid) {
TotalConnect++;
if(Iter_Count(Player) > MaxPlayersConnected) {
MaxPlayersConnected = Iter_Count(Player);
getdate(MPYear,MPMonth,MPDay);
}

if(!InvalidNameCheck(playerid))
return true;

new
szIP[16];

GetPlayerIp(playerid, szIP, 16);
format(szQuery, sizeof(szQuery), "SELECT EXISTS(SELECT 1 FROM `ipbans` WHERE ip = INET_ATON('%s'))", szIP);
HRPQuery(szQuery, THREAD_IP_BAN_CHECK, playerid, g_MySQLConnections[0]);
ResetPlayerInfo(playerid);

FuelText[playerid] = TextDrawCreate(530.000000, 150.000000, "Loading...");
TextDrawBackgroundColor(FuelText[playerid], 255);
TextDrawFont(FuelText[playerid], 1);
TextDrawLetterSize(FuelText[playerid], 0.200000, 0.899999);
TextDrawColor(FuelText[playerid], -1);
TextDrawSetOutline(FuelText[playerid], 0);
TextDrawSetProportional(FuelText[playerid], 1);
TextDrawSetShadow(FuelText[playerid], 1);
TextDrawUseBox(FuelText[playerid], 1);
TextDrawBoxColor(FuelText[playerid], 170);
TextDrawTextSize(FuelText[playerid], 606.000000, 1.000000);

HungerText[playerid] = TextDrawCreate(530.000000, 172.000000, "Loading...");
TextDrawBackgroundColor(HungerText[playerid], 255);
TextDrawFont(HungerText[playerid], 1);
TextDrawLetterSize(HungerText[playerid], 0.200000, 0.899999);
TextDrawColor(HungerText[playerid], -1);
TextDrawSetOutline(HungerText[playerid], 0);
TextDrawSetProportional(HungerText[playerid], 1);
TextDrawSetShadow(HungerText[playerid], 1);
TextDrawUseBox(HungerText[playerid], 1);
TextDrawBoxColor(HungerText[playerid], 170);
TextDrawTextSize(HungerText[playerid], 606.000000, 1.000000);
return true;
}

I'm new scripter, so tell me if it's this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)