array index out of bounds (variable "pInfo")
#5

pawn Код:
public OnPlayerEditAttachedObject( playerid, response, index, modelid, boneid,
                                   Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
                                   Float:fRotX, Float:fRotY, Float:fRotZ,
                                   Float:fScaleX, Float:fScaleY, Float:fScaleZ)
{
    new debug_string[256+1];
    format(debug_string,256,"SetPlayerAttachedObject(playerid,%d,%d,%d,%f,%f,%f,%f,%f,%f,%f,%f,%f)",
        pInfo[playerid][indextoy],pInfo[playerid][modelidtoy],pInfo[playerid][boneidtoy],pInfo[playerid][fOffsetXx],pInfo[playerid][fOffsetYy],pInfo[playerid][fOffsetZz],pInfo[playerid][fRotXx],pInfo[playerid][fRotYy],pInfo[playerid][fRotZz],pInfo[playerid][fScaleXx],pInfo[playerid][fScaleYy],pInfo[playerid][fScaleZz]);

    print(debug_string);
    //SendClientMessage(playerid, 0xFFFFFFFF, debug_string);

    SetPlayerAttachedObject(playerid,pInfo[playerid][indextoy],pInfo[playerid][modelidtoy],
    pInfo[playerid][boneidtoy],pInfo[playerid][fOffsetXx],pInfo[playerid][fOffsetYy],
    pInfo[playerid][fOffsetZz],pInfo[playerid][fRotXx],pInfo[playerid][fRotYy],pInfo[playerid][fRotZz],
    pInfo[playerid][fScaleXx],pInfo[playerid][fScaleYy],pInfo[playerid][fScaleZz]);
    SendClientMessage(playerid, 0xFFFFFFFF, "You finished editing an attached object");

    return 1;
}
Now what I need to do is make thease function to pInfo right :
pawn Код:
index, modelid, boneid,
Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ,
Float:fRotX, Float:fRotY, Float:fRotZ,
Float:fScaleX, Float:fScaleY, Float:fScaleZ
Reply


Messages In This Thread
array index out of bounds (variable "pInfo") - by Scrillex - 11.04.2015, 23:36
Re: array index out of bounds (variable "pInfo") - by Vince - 12.04.2015, 00:00
Re: array index out of bounds (variable "pInfo") - by Scrillex - 12.04.2015, 00:02
Re: array index out of bounds (variable "pInfo") - by Puppy - 12.04.2015, 00:13
Re: array index out of bounds (variable "pInfo") - by Scrillex - 12.04.2015, 00:16
Re: array index out of bounds (variable "pInfo") - by Scrillex - 12.04.2015, 00:26

Forum Jump:


Users browsing this thread: 3 Guest(s)