Page 1 of 1

list of all pcs in pcs.txt

Posted: Mon Jun 12, 2006 1:54 am
by Gnafu
i want to list all the pcs in the datafile and check if there are some of them without account (caused by errors, etc. ).

how can i do?

just a

Code: Select all

var datafile:= OpenDataFile( "pcs" );
if (!datafile)
    Sendsysmessage(who," "+datafile);
    Print(datafile);
    Print("Il datafile non esiste!");
    Sendsysmessage(who,"Il datafile non esiste!");
    return;
endif;   


foreach key in datafile

    Sendsysmessage(who," "+key);
  
endforeach

Posted: Mon Jun 12, 2006 5:44 am
by MuadDib
IF they have no account? No need mate. If a character (player, in pcs.txt) has no account, or the account it is linked to happens to "dissappear" somehow, POL will not load. All characters must have an account linked to them for POL to load.

Posted: Tue Jun 13, 2006 2:30 am
by Gnafu
perfect,

thanks
:D