26.05.2011, 18:50
If you type this command:
(the rest is just some return stuff)
It will give you this problem:
I've never had this problem before, I never even heard of it.
I've got this problem since I'm using ZCMD. I hope you know a way to solve this, instead of changing from ZCMD to DCMD if it has to do with ZCMD.
pawn Код:
CMD:warn(playerid, params[])
{
new giveplayerid, reason[128];
if(PlayerInfo[playerid][pAdmin] > 0)
{
if(sscanf(params, "us[128]", giveplayerid, reason)) return SendClientMessage(playerid, COLOR_RED, "Usage: /warn [Playerid/PartOfName] [Reason]");
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, COLOR_RED, "This player is not connected.");
if(PlayerInfo[giveplayerid][pAdmin] >= PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, COLOR_RED, "You can't warn this player.");
MaxWarnings[giveplayerid]++;
format(reason, sizeof(reason), "Admin {FF4500}%s(%i){FF0000} has warned {FF4500}%s(%i){FF0000} for: {FF4500}%s {FF0000}(%i/3)", PlayerName(playerid), playerid, PlayerName(giveplayerid), giveplayerid, reason, MaxWarnings[giveplayerid]);
SendClientMessageToAll(COLOR_RED2, reason);
It will give you this problem:
I've never had this problem before, I never even heard of it.
I've got this problem since I'm using ZCMD. I hope you know a way to solve this, instead of changing from ZCMD to DCMD if it has to do with ZCMD.