Jump to content
  • 0

pomoc log


Kvostyc

Dotaz

Zdar dneska som sa nudil, tak som otvoril pawno a chcem som urobiť nejaký ten chat log :-D, no lenže keď hráč niečo napíše v chate, má sa to ukladat do chatlog.txt, ale není tomu tak.

 

 

 

KOD: 

new File:chatlog = fopen("/logs/chatlog.txt",io_write),chat[128],hour,minute,second;
    gettime(hour,minute,second);
    format(chat,sizeof(chat),"[%d:%d:%d]: ( %s ): %s\n",hour,minute,second,Jmeno(playerid),text);
    fwrite(chatlog,chat);
    fclose(chatlog);
Edited by AlweR_18
Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0

Stále to nejde... mám to normálne v onplayertext bla bla bla.. ale priečinok logs a v ňom súbor chatlog.txt mám, čiže neviem kde je chyba..


Už to ide :-D

  • Líbí se mi to! (+1) 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...