18.07.2016, 11:51
Quote:
SQL is nothing like file systems that renaming a file requires to delete the current and create a new one. All you have to do is execute a query:
pawn Код:
|
Код HTML:
{ if(!adminLevel(playerid, 4)) return 0; new otherID, time, reason[26]; if(sscanf(params, "uds[26]", otherID, time, reason)) { Usage(playerid, "ban <playerid> <day> <reason>"); } else { if(time < 1 || time > 30) { Server(playerid, "Please input between 1 - 30."); return 1; } if(isMe(playerid, otherID)) { Server(playerid, "You can't use this command to yourself."); return 1; } if(!isConnected(otherID)) { Server(playerid, "That player isn't logged in!"); return 1; } if(isHigher(playerid, otherID)) { Server(playerid, "You can't use this command to that player."); return 1; } time = time * 1440; ban(playerid, otherID, reason, time); } return 1; }