help array must be indexed
#1

new
pFoundObject[MAX_EVOBJECTS],
pObject[MAX_EVOBJECTS],
questobjectss = 0;

enum objInfo
{
objID,
objModel,
FloatbjPosX,
FloatbjPosY,
FloatbjPosZ
};
new ObjectInfo[MAX_EVOBJECTS][objInfo];

function disconnectQuest(playerid)
{
for(new xx = 1; xx <= questobjectss; xx++)
{
if(PlayerInfo[playerid][pObject][xx] != 0)
{
DestroyDynamicPickup(PlayerInfo[playerid][pObject][xx]);
PlayerInfo[playerid][pObject][xx] = 0;
}
}
}

line: DestroyDynamicPickup(PlayerInfo[playerid][pObject][xx]);
Reply
#2

PHP код:
DestroyDynamicPickup(PlayerInfo[xx][pObject]); 
Reply
#3

my script is a include, if i put in main.pwn it's working, why?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)