MySQL Error Help :(
#1

Hello I was working on a login system of my new GM which is MySQL Based. I followed tutorials on Forums to create a base login system to test if the way I am coding is correct. Now the problem is, that its giving me error on a weird line. I tried all possible things to prevent the error like writing same code in different ways but nothing worked. so I request some help. Thanks.


errors:
Код:
 S:\SAMP Stuff\ gamemodes\new.pwn(258) : error 029: invalid expression, assumed zero
S:\SAMP Stuff\ gamemodes\new.pwn(258) : warning 217: loose indentation
S:\SAMP Stuff\ gamemodes\new.pwn(258) : error 029: invalid expression, assumed zero
S:\SAMP Stuff\ gamemodes\new.pwn(258) : error 029: invalid expression, assumed zero
S:\SAMP Stuff\ gamemodes\new.pwn(258) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Code:
Код:
public OnPlayerDataLoaded(playerid)
{
	new rows,fields,row_count,field_count;
	row_count = cache_get_row_count(rows);
	field_count = cache_get_field_count(fields);
	if(!row_count)
    { //Line 258 here the error points.
        ShowPlayerDialog(playerid, Dialog_NoAcct, DIALOG_STYLE_MSGBOX, "Not Registerd on UCP, register there first.", "ok","");
		Kick(playerid);
	}
    else
    {
        cache_get_field_content(0, "Pass", PlayerInfo[playerid][pPass], DBConnect, 1024);
        PlayerInfo[playerid][pID] = cache_get_field_content_int(0, "ID");
        ShowPlayerDialog(playerid, Dialog_Login, DIALOG_STYLE_INPUT, "login", "enter password to login", "login", "quit");
    }
	return 1;
}
Reply


Messages In This Thread
MySQL Error Help :( - by GeorgeMcReary - 13.12.2017, 14:37
Re: MySQL Error Help :( - by RogueDrifter - 13.12.2017, 17:44
Re: MySQL Error Help :( - by Xeon™ - 13.12.2017, 17:50
Re: MySQL Error Help :( - by GeorgeMcReary - 14.12.2017, 16:42
Re: MySQL Error Help :( - by GeorgeMcReary - 16.12.2017, 13:35
Re: MySQL Error Help :( - by RIDE2DAY - 16.12.2017, 14:11
Re: MySQL Error Help :( - by GeorgeMcReary - 17.12.2017, 07:12
Re: MySQL Error Help :( - by GeorgeMcReary - 24.12.2017, 16:20

Forum Jump:


Users browsing this thread: 2 Guest(s)