HoldObject problem
#1

////////
Reply
#2

need fast help.. seriously
Reply
#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
#4

Doenst work.. (It not holding object)
Reply
#5

Try using:
pawn Код:
RemovePlayerAttachedObject( playerid, 0 );
RemovePlayerAttachedObject( playerid, xrprillid );
Reply
#6

Still doenst work.
Reply
#7

What is PData[playerid][rprillid]? Where you set this var?
Reply
#8

PData = PlayerData (its enum)
Reply
#9

Someone? =/
Reply
#10

Quote:
What is PData[playerid][rprillid]? Where you set this var?
I know that your PData an Enumerator is, but I want to see where you set this Var.
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)