[HELP] AttachCameraToObject - Camera Bugs and Crash!
#1

I have the script for my server, is the mode First Person, this work fine, but now simply have started a bug:
The screen is flickering... falshing.

pawn Code:
if (strcmp("/ppessoa", cmdtext, true, 10) == 0)
    {
           if(PrimeiraPessoa[playerid] == 0)
           {
            ObjetoPrimeiraPessoa[playerid] = CreateObject(18685, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);//19300
            AttachObjectToPlayer(ObjetoPrimeiraPessoa[playerid], playerid, 0.0, 0.2, 0.68, 0.0, 0.0, 0.0);
                       //AttachObjectToPlayer(ObjetoPrimeiraPessoa[playerid],playerid, 0.0, 0.12, 0.7, 0.0, 0.0, 0.0);
                       AttachCameraToObject(playerid, ObjetoPrimeiraPessoa[playerid]);
                       GameTextForPlayer(playerid, "~y~primeira pessoa~n~~w~ativado", 5000, 1);
                       PrimeiraPessoa[playerid] = 1;
                       return 1;
           }
           else
           {
                      SetCameraBehindPlayer(playerid);
                      DestroyObject(ObjetoPrimeiraPessoa[playerid]);
                      PrimeiraPessoa[playerid] = 0;
                      GameTextForPlayer(playerid, "~y~primeira pessoa~n~~r~desativado", 5000, 1);
           }
           return 1;
    }
The video not is my, but i used for example of the bug! Help me, please!
[ame]http://www.youtube.com/watch?v=Vz9WPmZM33c[/ame]
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)