Help with SpeedBoost
#4

sorry for the double post but when itried to create a 3d label there is lag in server when that 3d label come
pawn Код:
public OnPlayerUpdate(playerid)
{
    new Text3D:text; // variables
    new vehicleid = GetPlayerVehicleID(playerid);
    if(IsPlayerInAnyVehicle(playerid))
    {
    if(Boost[playerid] == 1)
    {
    text = Create3DTextLabel( "{00FF00}Boost:Online", 0xFF0000AA, 0.0, 0.0,0.0, 50.0, 0, 1 ); // Create3D
    Attach3DTextLabelToVehicle( text, vehicleid, 0.0, 0.0, 0.7);// Attach3D
    Update3DTextLabelText(text, 0xFFFFFFFF, "{00FF00}Boost:Online");
    }
    else
    {
   
    text = Create3DTextLabel( "{00FF00}Boost:{FF0000}Offline", 0xFF0000AA, 0.0, 0.0,0.0, 50.0, 0, 1 ); // Create3D
    Attach3DTextLabelToVehicle( text, vehicleid, 0.0, 0.0, 0.7);// Attach3D
    Update3DTextLabelText(text, 0xFFFFFFFF, "{00FF00}Boost:{FF0000}Offline");
    }
    }
    else
    {
    DeletePlayer3DTextLabel(playerid,text); ///This is line no. 1900
    }
    return 1;
}
andi get one warn
pawn Код:
E:\ALL SETUPS\SAMP NEEDs\samp03e_svr_R2_win32\gamemodes\ImpulsiveX.pwn(1900) : warning 213: tag mismatch
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.
Reply


Messages In This Thread
Help with SpeedBoost - by Gamer_007 - 22.11.2012, 02:25
Re: Help with SpeedBoost - by -=Dar[K]Lord=- - 22.11.2012, 02:41
Re: Help with SpeedBoost - by Gamer_007 - 22.11.2012, 04:04
Re: Help with SpeedBoost - by Gamer_007 - 22.11.2012, 05:53
Re: Help with SpeedBoost - by Hoss - 22.11.2012, 05:59
Re: Help with SpeedBoost - by Scott Zulkifli - 22.11.2012, 06:00
Re: Help with SpeedBoost - by Gamer_007 - 22.11.2012, 06:19
Re: Help with SpeedBoost - by Gamer_007 - 22.11.2012, 12:38
Re: Help with SpeedBoost - by -=Dar[K]Lord=- - 22.11.2012, 14:10

Forum Jump:


Users browsing this thread: 4 Guest(s)