Register/Login error [FIXED] - 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: Register/Login error [FIXED] (
/showthread.php?tid=532065)
Register/Login error [FIXED] -
thaKing - 16.08.2014
Fixed.
Re: Register/Login error -
thaKing - 16.08.2014
Added line 272 and
Re: Register/Login error [FIXED] -
Sarra - 16.08.2014
pawn Код:
if(line==i)
{
fclose(player);
return string;
}
try this, it should work
Re: Register/Login error [FIXED] -
Twizted - 16.08.2014
pawn Код:
ReadPlayer(line, playerid)
{
new string[256], name[MAX_PLAYER_NAME];
new File:player;
GetPlayerName(playerid, name, sizeof(name));
format(string, 256, "player_accounts/%s.ini", name);
player = fopen(string, io_read);
for(new i=1; i<=line; i++)
{
fread(player, string);
if(line==i)
{
fclose(player);
return string;
}
}
return string;
}
You should read the errors. I compiled everything successfully.
Re: Register/Login error [FIXED] -
Schocc - 16.08.2014
Read
this article and
this.