Quote:
Originally Posted by pds2k12
pawn Код:
CMD:lockserver(playerid, params[]) { new string[128];
if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /lockerserver [password]");
SendRconCommand("password %s", params);
format(string, sizeof(string), "AdmCmd : %s %s has Locked The Server (PASSWORD: %s) ", RPALN(playerid), RPN(playerid), params); SendAdminMessage(COLOR_RED, 1, string); format(string, sizeof(string), "AdmCmd: %s has locked the server.", RPN(playerid)); SendClientMessageToAll(COLOR_LIGHTRED, string); return 1; }
You're using the wrong Placeholder
|
Yet Warning: "warning 202: number of arguments does not match definition"
Line: "SendRconCommand("password %s", params);"
And I was suree %d is for numbers and not %s.
Any else solutions?