HoldObject problem
#3

You can't use "XXX=SetPlayerAttachedObject", for this is the Index
pawn Код:
if(strcmp(cmd, "/prillid", true) == 0)
{
    if(PData[playerid][rprillid] != 0) {
        if(xrprillidx[playerid] == 0) {
            SetPlayerAttachedObject(playerid, 0, PData[playerid][rprillid], 2, 0.09, 0.04, 0, 88, 75, 0);
            xrprillidx[playerid] = 1;
        }
        if(xrprillidx[playerid] == 1) {
            RemovePlayerAttachedObject(playerid,0);
            xrprillidx[playerid] = 0;
        }
    } else {
        Kiri(playerid, VALGE, "Sul ei ole prillid ostetud!");
    }
    return 1;
}
Reply


Messages In This Thread
HoldObject problem - by Typhome - 21.03.2011, 15:08
Re: HoldObject problem - by Typhome - 21.03.2011, 15:55
AW: HoldObject problem - by Pablo Borsellino - 21.03.2011, 16:02
Re: HoldObject problem - by Typhome - 22.03.2011, 11:12
Re: HoldObject problem - by antonio112 - 22.03.2011, 11:24
Re: HoldObject problem - by Typhome - 22.03.2011, 12:36
AW: HoldObject problem - by Pablo Borsellino - 22.03.2011, 14:17
Re: HoldObject problem - by Typhome - 22.03.2011, 20:23
Re: HoldObject problem - by Typhome - 24.03.2011, 11:47
AW: HoldObject problem - by Pablo Borsellino - 24.03.2011, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)