06.08.2012, 11:30
Hey guys. I've got a command which creates a bunch of dynamic objects, but after some minutes they gradually dissappear. I'm using Incognito's Streamer.
If it helps, this is the command:
Can you please help me fix it?
By the way, if it helps: I haven't got any callback which destroy them, just the command "/stopparty".
If it helps, this is the command:
pawn Код:
if(strcmp(cmd, "/startparty", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 6)
{
if(CarnivalStarted != 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
CarnivalIcon[i] = SetPlayerMapIcon(i, 58, 1418.6583,-3083.5276,7.7274, 25, -1, MAPICON_GLOBAL);
}
CarnivalStarted = 1;
CarnivalPickups[0] = CreateDynamicPickup(1239, 1, 1429.1669,-3139.4631,8.1687); // LOTERIE-CARNAVAL
CarnivalPickups[1] = CreateDynamicPickup(1239, 1, 1417.8304,-3155.1316,8.1687); // BOWLING
CarnivalPickups[2] = CreateDynamicPickup(1239, 1, 1417.9585,-3157.6885,8.1687); // BOWLING
CarnivalPickups[3] = CreateDynamicPickup(1239, 1, 1368.7657,-3122.4314,8.1687); // stand
CarnivalPickups[4] = CreateDynamicPickup(1239, 1, 1399.2458,-3104.2573,8.1687); // stand
CarnivalPickups[5] = CreateDynamicPickup(1239, 1, 1431.9626,-3123.4517,8.1687); // stand
CarnivalLabel[0] = Create3DTextLabel("Loteria \nScrie /lotto pentru a lua un bilet",COLOR_GRAD4,822.1622,6.4807,1004.1797,10.0,5);// /LOTTO-LOTERIE
CarnivalLabel[1] = Create3DTextLabel("Loteria \nScrie /lotto pentru a lua un bilet",COLOR_GRAD4,822.1740,4.2276,1004.1797,10.0,5);// /LOTTO-LOTERIE
CarnivalLabel[2] = Create3DTextLabel("Loteria \nScrie /lotto pentru a lua un bilet",COLOR_GRAD4,822.1691,1.8918,1004.1797,10.0,5);// /LOTTO-LOTERIE
. // other labels
. // other labels
. // other labels
CarnivalLabel[16] = Create3DTextLabel("Loteria \nApasa F pentru a intra",COLOR_GRAD4,1429.1669,-3139.4631,8.1687,10.0,0);// LOTERIE-CARNAVAL
CarnivalObjects[0] = CreateDynamicObject(6959,1420.29980469,-3102.50000000,7.19999981,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (1)
CarnivalObjects[1] = CreateDynamicObject(6959,1379.00000000,-3102.50000000,7.19999981,0.00000000,0.00000000,0.00000000); //object(vegasnbball1) (2)
. // other objects
. // other objects
. // other objects
CarnivalObjects[330] = CreateDynamicObject(3065,1368.269775,-3097.932128,7.262943,0.000000,0.000000,0.000000);
return 1;
}
else return SendClientMessage(playerid, COLOR_WHITE, "{DC0C0C}Party: {FFFFFF}The party has already been started!");
}
}
By the way, if it helps: I haven't got any callback which destroy them, just the command "/stopparty".