SA-MP Forums Archive
problem, streamer!!! - 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)
+--- Thread: problem, streamer!!! (/showthread.php?tid=411902)



problem, streamer!!! - Jermi - 30.01.2013

I just was opening my server as it was working but it gives that:
Quote:

Error: Function not registered: 'EditAttachedObject'

i updated my streamer again and compiled again, Nothing Work!, HELP


Re: problem, streamer!!! - jakejohnsonusa - 30.01.2013

Whats the code in the GM for that function?


Re: problem, streamer!!! - Jermi - 30.01.2013

Quote:

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)
{
SetPlayerAttachedObject(playerid, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ);
PlayerInfo[playerid][pToyX][index] = fOffsetX;
PlayerInfo[playerid][pToyY][index] = fOffsetY;
PlayerInfo[playerid][pToyZ][index] = fOffsetZ;
PlayerInfo[playerid][pToyRX][index] = fRotX;
PlayerInfo[playerid][pToyRY][index] = fRotY;
PlayerInfo[playerid][pToyRZ][index] = fRotZ;
PlayerInfo[playerid][pToySX][index] = fScaleX;
PlayerInfo[playerid][pToySY][index] = fScaleY;
PlayerInfo[playerid][pToySZ][index] = fScaleZ;
return 1;
}

That?


Re: problem, streamer!!! - jakejohnsonusa - 30.01.2013

Yes, but can you put it into "pawn" brakets instead of "code" brackets?


Re: problem, streamer!!! - Jermi - 30.01.2013

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)
{
    SetPlayerAttachedObject(playerid, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ);
    PlayerInfo[playerid][pToyX][index] = fOffsetX;
    PlayerInfo[playerid][pToyY][index] = fOffsetY;
    PlayerInfo[playerid][pToyZ][index] = fOffsetZ;
    PlayerInfo[playerid][pToyRX][index] = fRotX;
    PlayerInfo[playerid][pToyRY][index] = fRotY;
    PlayerInfo[playerid][pToyRZ][index] = fRotZ;
    PlayerInfo[playerid][pToySX][index] = fScaleX;
    PlayerInfo[playerid][pToySY][index] = fScaleY;
    PlayerInfo[playerid][pToySZ][index] = fScaleZ;
    return 1;
}



Re: problem, streamer!!! - Jermi - 30.01.2013

I gotta go now, Help me and i will rep you tommorrow, good night!


Re: problem, streamer!!! - Sime30 - 31.01.2013

You need to have all includes UPDATED


Re: problem, streamer!!! - Jermi - 31.01.2013

sorry but 'Are you idiot'? They are already updated, Read up
Still this error, PLEASE HELP!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Quote:

Error: Function not registered: 'EditAttachedObject'