Posts: 1,504
Threads: 109
Joined: Jan 2012
Quote:
Originally Posted by WCrimson
pawn Код:
ReadPlayer(line,playerid) { new string[MAX_PLAYER_NAME<<4]; GetPlayerName(playerid, string, sizeof(string)); format(string,sizeof(string),"Cuentas/%s.ini",string); new File:player = fopen(string, io_read), iterator = 0; while(++iterator && fread(player, string)) { if( iterator == line ) break; else continue; } return (fclose(player),string); }
|
todavia no funciona, cuando me registro se guarda la clave, pero cuando entro denuevo me pide para registrarme de nuevo, y cuando la pongo denuevo, en el .ini se multiplica la clave.