03.05.2020, 17:21
Hello Everyone,
I am facing some issues with my server now
I have more than 50 stores and sometimes the pickup gets automatically dissapears. its not pointing to particularr stores.
sometimes it gets dissapeared or it works fine. any solution.
here is my code
Note: i am using an include file. and in my main gamemode
its like
#include <store>
Store Array
Helps Appreciated and ++
I am facing some issues with my server now
I have more than 50 stores and sometimes the pickup gets automatically dissapears. its not pointing to particularr stores.
sometimes it gets dissapeared or it works fine. any solution.
here is my code
Note: i am using an include file. and in my main gamemode
its like
#include <store>
PHP Code:
forward loadStore();
public loadStore()
{
for(new i = 0; i < MAX_STORE; i++)
{
//Store[i][storeCP] = CreateDynamicCP(Store[i][storePlace][0], Store[i][storePlace][1], Store[i][storePlace][2], 1.0);
Store[i][storeCP] = STREAMER_TAG_PICKUP:CreateDynamicPickup(19198, 1, Store[i][storePlace][0], Store[i][storePlace][1], Store[i][storePlace][2]+0.8);
Store[i][exitCP] = STREAMER_TAG_PICKUP:CreateDynamicPickup(19198, 1, Store[i][storeOut][0], Store[i][storeOut][1], Store[i][storeOut][2]+0.8,.worldid=Store[i][storeID]);
//Store[i][storeLabel] = CreateDynamic3DTextLabel("[STORE]", COLOR_GOLD, Store[i][storePlace][0], Store[i][storePlace][1], Store[i][storePlace][2] + 0.5, 10.0);
}
}
PHP Code:
enum __inExdata
{
storeID,
Float:storePlace[4],
Float:storeOut[4],
storeInt,
storeIcon,
Float:StorePlayerPos[4],
Float:StorePlayerOutPos[4],
storenames[30],
RobActor,
storeCP,
exitCP,
Text3D:storeLabel
}