02.09.2012, 21:57
Replace:
With:
Also this:
To this:
pawn Код:
new str[128]; //create a new string
LINE 1976 = format(str, sizeof(str), "[Sentence] %s has been jailed by %s for %d minutes.", Name(targetid), Name(playerid), minutes);
pawn Код:
new str[128]; //create a new string
new Name[MAX_PLAYER_NAME], PlayerName[MAX_PLAYER_NAME];
GetPlayerName(playerid, Name, sizeof(Name));
GetPlayerName(targetid, PlayerName, sizeof(PlayerName));
format(str, sizeof(str), "[Sentence] %s has been jailed by %s for %d minutes.", Name, PlayerName, minutes);
pawn Код:
if(sscanf(params, "ri", targetid, minutes)) return SendClientMessage(playerid, COLOR_ORANGE,"Usage: /jail <playerid> <minutes>");
pawn Код:
if(sscanf(params, "ui", targetid, minutes)) return SendClientMessage(playerid, COLOR_ORANGE,"Usage: /jail <playerid> <minutes>");