SA-MP Forums Archive
HoldObject problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: HoldObject problem (/showthread.php?tid=243103)



HoldObject problem - Typhome - 21.03.2011

////////


Re: HoldObject problem - Typhome - 21.03.2011

need fast help.. seriously


AW: HoldObject problem - Pablo Borsellino - 21.03.2011

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;
}



Re: HoldObject problem - Typhome - 22.03.2011

Doenst work.. (It not holding object)


Re: HoldObject problem - antonio112 - 22.03.2011

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



Re: HoldObject problem - Typhome - 22.03.2011

Still doenst work.


AW: HoldObject problem - Pablo Borsellino - 22.03.2011

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


Re: HoldObject problem - Typhome - 22.03.2011

PData = PlayerData (its enum)


Re: HoldObject problem - Typhome - 24.03.2011

Someone? =/


AW: HoldObject problem - Pablo Borsellino - 24.03.2011

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.