SA-MP Forums Archive
Error server - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Error server (/showthread.php?tid=514239)



Error server - BryanD - 20.05.2014

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


Re: Error server - Copfan5 - 20.05.2014

Show us OnPlayerConnect please.


Re: Error server - Hwang - 20.05.2014

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


Re: Error server - Beckett - 20.05.2014

Code.


Re: Error server - BryanD - 20.05.2014

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.