[Ajuda] Alguns Erros e Warnings :S
#4

stock da 8035 e 8040
pawn Код:
IsPlayerAimingAt(playerid, Float:x, Float:y, Float:z, Float:radius)
{
    new Float:cx,Float:cy,Float:cz,Float:fx,Float:fy,Float:fz;
    GetPlayerCameraPos(playerid, cx, cy, cz);
    GetPlayerCameraFrontVector(playerid, fx, fy, fz);
    return (radius >= DistanceCameraTargetToLocation(cx, cy, cz, x, y, z, fx, fy, fz));
}

9125
Troque tudo que estб "playerName" para "garName".


91531
pawn Код:
if(IsACop(playerid) && GetPlayerWeapon(playerid) == 23 && Tazer[playerid] == 1)
        {
            new Float:X,Float:Y,Float:Z,Float:pX,Float:pY,Float:pZ;
            GetPlayerPos(playerid, pX,pY,pZ);
            for(new i=0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                    if(IsPlayerInRangeOfPoint(i,60, pX,pY,pZ))
                    {
                        if(i != playerid)
                        {
                            GetPlayerPos(i, X,Y,Z);
                            new iname[MAX_PLAYER_NAME];
                            new string[128];
                            GetPlayerName(i, iname, sizeof(iname));
                            if(IsPlayerAimingAt(playerid, X,Y,Z,1.5))
                            {
                                GameTextForPlayer(i,"~r~Acertaram um Tazer",9000,4);
                                GameTextForPlayer(playerid, "~b~Usou o Tazer",2000,4);
                                TogglePlayerControllable(i, 0);
                                TogglePlayerControllable(playerid, 0);
                                ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
                                SetTimerEx("Unfreezeply",9000,0,"i",i);
                                ApplyAnimation(playerid,"ped", "ARRESTgun", 4.0, 0, 1, 1, 1, -1);
                                SetTimerEx("Unfreezeply",1500,0,"i",playerid);
                                format(string, sizeof(string),"* %s Aponta sua Tazer em %s e acertou ele",sendername,iname);
                            }
                            else return GameTextForPlayer(playerid, "~b~Errou o tazer",3750,4);
                        }
                    }
                }
            }
        }
Reply


Messages In This Thread
Alguns Erros e Warnings :S - by SonicPaintballer - 08.01.2013, 05:59
Re: Alguns Erros e Warnings :S - by zSuYaNw - 08.01.2013, 06:06
Re: Alguns Erros e Warnings :S - by SonicPaintballer - 08.01.2013, 06:10
Re: Alguns Erros e Warnings :S - by zSuYaNw - 08.01.2013, 06:17
Re: Alguns Erros e Warnings :S - by SonicPaintballer - 08.01.2013, 06:20
Re: Alguns Erros e Warnings :S - by zSuYaNw - 08.01.2013, 06:26
Re: Alguns Erros e Warnings :S - by SonicPaintballer - 08.01.2013, 06:28
Re: Alguns Erros e Warnings :S - by zSuYaNw - 08.01.2013, 06:30
Re: Alguns Erros e Warnings :S - by SonicPaintballer - 08.01.2013, 06:31
Re: Alguns Erros e Warnings :S - by zSuYaNw - 08.01.2013, 06:38

Forum Jump:


Users browsing this thread: 2 Guest(s)