03.06.2015, 14:04
I changed my code a bit and now it has just 2 texts and 2 pickups and it lags as before.
PHP код:
new world = GetPlayerVirtualWorld(playerid);
if(pWirtualWorld[playerid] != world)
{
pWirtualWorld[playerid] = world;
}
if(pWirtualWorld[playerid] == 1)
{
Text[0] = CreatePlayer3DTextLabel(playerid,""COLOR_ZUTA"[BANK]\n\n{FFFFFF}OPCIJA: /banka",-1,1447.2296,-1004.8912,1301.5193,30.0);
Pickup[0] = CreatePickup(1239,1,1447.2296,-1004.8912,1301.5193,1);
Text[1] = CreatePlayer3DTextLabel(playerid,""COLOR_ZUTA"[BANK]\n\n{FFFFFF}OPCIJA: /kredit",-1,1441.5874,-1004.8845,1301.5193,30.0);
Pickup[1] = CreatePickup(1239,1,1441.5874,-1004.8845,1301.5193,1);
}
else
{
DestroyPickup(Pickup[0]);
DestroyPickup(Pickup[1]);
DeletePlayer3DTextLabel(playerid,Text[0]);
DeletePlayer3DTextLabel(playerid,Text[1]);
}