15.02.2012, 18:35
Olб. Entгo, estou tentando fazer um sistema que salva um texto e depois um player digita o comando e vк todos textos salvos. Porйm sу aparece o primeiro, o resto nгo, jб tentei de vбrias formas, e nenhum funciona, sу aparece o primeiro :S
To usando mais ou menos assim (exemplo da WikiSamp):
Sу que nгo estou pondo pra banir, depois do while(fread... eu to pondo pra abrir um dialog.
Nгo funciona...
Alguma luz ? Vlw =D
To usando mais ou menos assim (exemplo da WikiSamp):
pawn Код:
new string[64]; // Create the string to store the read text in
new File:example = fopen("Startup.txt", io_read); // Open the file
while(fread(example, string)) //reads the file line-by-line
{
if(strcmp(string, "Ban", true) == 0) //if any of the lines in the file say "Ban" the system will ban the player
{
Ban(playerid); //bans the player
}
}
fclose(example);
pawn Код:
ShowPlayerDialog(playerid,1, DIALOG_STYLE_MSGBOX,"Texto", string,"Fechar","");
Alguma luz ? Vlw =D