#7

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]);
    } 
Reply


Messages In This Thread
Lag - by NoDi522 - 29.05.2015, 17:48
Re: Lag - by hossa - 29.05.2015, 18:42
Re: Lag - by NoDi522 - 29.05.2015, 19:17
Re: Lag - by Konverse - 29.05.2015, 19:18
Re: Lag - by NoDi522 - 03.06.2015, 13:58
AW: Lag - by Kaliber - 03.06.2015, 14:03
Re: Lag - by NoDi522 - 03.06.2015, 14:04
Re: Lag - by NoDi522 - 03.06.2015, 14:28

Forum Jump:


Users browsing this thread: 1 Guest(s)