2021-04-22, 11:06 AM
Is there anything i can use for making logs? like a kick and ban log.
[Pawn] HELP with log.
|
2021-04-22, 11:06 AM
Is there anything i can use for making logs? like a kick and ban log.
2021-04-22, 11:27 AM
You can use mysql for making ban logs.
2021-04-22, 11:59 AM
2021-04-22, 04:47 PM
(This post was last modified: 2021-04-22, 04:50 PM by TheAnimalKa.)
(2021-04-22, 11:59 AM)Ambarita Wrote:(2021-04-22, 11:27 AM)TheAnimalKa Wrote: You can use mysql for making ban logs. Code: stock WriteLog(const path[], const str[], {Float,_}:...) // Credit Emmet And you use it like this CMD:ban(playerid, params[]) { if(sscanf(params, "us[128]", playerb, reason)) return SendClientMessage(playerid, -1, "/ban [playerid/PartofName] [reason]"); WriteLog("ban_logs/ban.txt", "%s has banned?%s?for?%s.",? ReturnName(playerid), ReturnName(playerb), reason); return 1; } if no log will show in your scriptfiles I think you have to manual create a folder named ban_logs and inside it is ban.txt.
2021-04-22, 11:15 PM
Using Pawn.CMD?
If you're doing so, this is the very first sign that you absolutely shouldn't utilize your all powerful P-Code knowledge in any of the scripting discussion topics. |