[Error]
#3

pawn Код:
CMD:uncuff(playerid, params[])
{
    new target[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], str[128], Float:x, Float:y, Float:z;
    if(sscanf(params, "r", params[0])) return SendClientMessage(playerid, -1, "[USA]: /uncuff [id]");
    if(IsPlayerConnected(params[0]))
    {
        GetPlayerPos(playerid, x, y, z);
        if(IsPlayerInRangeOfPoint(params[0], 5.0, x, y, z))
        {
            //if(!SetPlayerAttachedObject(params[0], 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977,-81.700035, 0.891999, 1.000000, 1.168000))return SendClientMessage(playerid,-1,"[ERROR]: El player no ah utilizado el comando /cuff");
            SetPlayerSpecialAction(params[0],SPECIAL_ACTION_NONE);
            GetPlayerName(playerid, name, sizeof(name));
            GetPlayerName(params[0], target, sizeof(target));
            format(str, sizeof(str), "[INFO]:  haz sacado perfectamente ah: %s!",target);
            SendClientMessage(playerid, 0xE01B1B, str);
            format(str, sizeof(str), " Te han sacado el objeto, [%s]",name);
            SendClientMessage(params[0], 0xE01B1B, str);
            return 1;
        }
    }
    return 1;
}
estas usando mal el SetPlayerAttachedObject , utiliza IsPlayerAttachedObjectSlotUsed o colocale una variable.

SetPlayerAttachedObject = Adjuntar un objeto a un skin especнfico de un jugador.
Reply


Messages In This Thread
[Error] - by pinpon - 25.02.2013, 15:54
Respuesta: [Error] - by Parka - 25.02.2013, 16:04
Respuesta: [Error] - by OTACON - 26.02.2013, 02:48

Forum Jump:


Users browsing this thread: 2 Guest(s)