02.05.2015, 20:16
What am I doing wrong ?
Код:
CMD:cuff(playerid, params[]){ new targetid, pName2[MAX_PLAYER_NAME], pName3[MAX_PLAYER_NAME], string[128]; if (sscanf(params, "u", targetid)) return SendClientMessage(playerid, COLOR_SYNTAX, "Syntax: /cuff [playerid]"); if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, RED, "Invalid Player ID!"); SetPlayerSpecialAction(targetid,SPECIAL_ACTION_CUFFED);GameTextForPlayer(targetid, "You are cuffed", 3000, 3); GetPlayerName(playerid, pName2, sizeof(pName2)); GetPlayerName(targetid, pName3, sizeof(pName3)); format(string, sizeof(string), "%s has cuffed %s ", pName2, pName3); NearbyMessage(playerid, LIGHTBLUE, string); return 1; }