Attach help
#1

Deleted...
Reply
#2

like
pawn Код:
#define MAX_OBJECT 2
enum pOpt
{
     pObject,pOjectID
};
new MyObject[MAX_PLAYERS][MAX_OBJECTS][pOpt];
some codes....
pawn Код:
MyObject[playerid][0][pOject] = CreateObject(MyObject[playerid][0][pOjectID], 0.0, 0.0, 0.0, 0.0, 0.0, 0.0););
AttachObjectToPlayer(MyObject[playerid][0][pOject],playerid,1.5, 0.5, 0.0, 0.0, 1.5, 2);
and when player logout save Object ids just by checking
pawn Код:
if(MyObject[playerid][0][pOjectID] !=0) ... //your codes
Reply
#3

CreateObject returns -1 if the object is invalid or not created, so:
pawn Код:
if(MyObject[playerid][0][pOjectID] != -1)
Reply
#4

thanks man
Reply
#5

Annnnnnnd deleted.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)