chytrak 14 Odesláno: 3. Srpen, 2008 Share Odesláno: 3. Srpen, 2008 Dříve sem hledal pro svůj anti cheat print do vlastního logu, ale nikdo to neuměl a nyní, když sem si jeden udělal tak se o něj s vámi chci podělit. log se bude ukládat do složky scriptfiles Nad main stock OwnPrint(const string[]) { new File:ftw=fopen("Log.log", io_append); //vytvori soubor s nazvem "Log.log" fwrite(ftw, string); //otevre log a zapise fclose(ftw); //zavre log return 1; } příklad použití if(strcmp(cmdtext, "/nick", true) == 0) { new string[256], wang[MAX_PLAYER_NAME]; GetPlayerName(playerid, wang, MAX_PLAYER_NAME); format(string,256,"Váš nick je %s\r\n", wang); OwnPrint(string); return 1; } \r\n Dáte za každou větou, u které chcete, aby byla na novém řádku. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now