help array must be indexed - 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: help array must be indexed (
/showthread.php?tid=652896)
help array must be indexed -
ShadowBlack - 21.04.2018
new
pFoundObject[MAX_EVOBJECTS],
pObject[MAX_EVOBJECTS],
questobjectss = 0;
enum objInfo
{
objID,
objModel,
Float
bjPosX,
Float
bjPosY,
Float
bjPosZ
};
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]);
Re: help array must be indexed -
jasperschellekens - 21.04.2018
PHP код:
DestroyDynamicPickup(PlayerInfo[xx][pObject]);
Re: help array must be indexed -
ShadowBlack - 21.04.2018
my script is a include, if i put in main.pwn it's working, why?