13.12.2017, 14:37
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:
Code:
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.
Код:
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;
}


