[POMOC]Ne radi mi komanda:..

Započeo Matrix_Green, Maj 31, 2011, 19:45:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju korsitim moj gm od 0
Detaljan opis problema:Evo ovako stavi sam IsPlayerRangeOfPoint da komandu mogu koristiti na jednme mjestu i ja upise komandu posot je to motori to upisem /motori i on mi oopet na istome mjestu otvori

if (!strcmp("/motori", cmdtext, true))
       {
           if(IsPlayerInRangeOfPoint(playerid, 1, 547.6896,-1284.3259,17.0277))
           if (GetOwnedVehicleID(playerid) != INVALID_VEHICLE_ID) return SendClientMessage(playerid, RED, "You already own a vehicle!");
           if (GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid, RED, "You must not be in an interior"); // To prevent screw ups
               GetPlayerPos(playerid, OrgX[playerid], OrgY[playerid], OrgZ[playerid]);
           GetPlayerFacingAngle(playerid, OrgA[playerid]);
           new Float:X,Float:Y;
           new color1 = CarColor[playerid][0];
               new color2 = CarColor[playerid][1];
           X = VEHSHOW_X;
           Y = VEHSHOW_Y;
               TogglePlayerControllable(playerid, false);
               X -= (10.0 * floatsin(-VEHSHOW_A+90, degrees));
               Y -= (10.0 * floatcos(-VEHSHOW_A+90, degrees));
               SetPlayerCameraPos(playerid, X, Y, VEHSHOW_Z);
               X += (10.0 * floatsin(-VEHSHOW_A+90, degrees));
               Y += (10.0 * floatcos(-VEHSHOW_A+90, degrees));
               SetPlayerCameraLookAt(playerid, X, Y, VEHSHOW_Z);
               SetPlayerVirtualWorld(playerid, playerid);
               ShopCar[playerid] = CreateVehicle(CarModels[0], VEHSHOW_X, VEHSHOW_Y, VEHSHOW_Z, 0.0, color1, color2, 6000000);
               SetVehicleVirtualWorld(ShopCar[playerid], playerid);
               PutPlayerInVehicle(playerid, ShopCar[playerid], 0);
               TogglePlayerControllable(playerid, false);
               CarShopping[playerid] = true;
               SetTimerEx("BrowseCars", 300, 0, "d", playerid);
               //SetTimerEx("FreezeCar", 100, 0, "d", playerid);
               return 1;
       }
[/color]
to je komanda gore evo hvala na pomoci uneprijed
Slike ili video:\\\
Poslednja Izmena: Maj 31, 2011, 20:00:06 POSLE PODNE od sandman12wolf
<a href="http://tinypic.com?ref=5l2yrb" target="_blank"><img src="http://i47.tinypic.com/5l2yrb.png" border="0" alt="Image and video hosting by TinyPic"></a>

if (!strcmp("/motori", cmdtext, true))
        {
            if(IsPlayerInRangeOfPoint(playerid, 1, 547.6896,-1284.3259,17.0277))
            {
            if (GetOwnedVehicleID(playerid) != INVALID_VEHICLE_ID) return SendClientMessage(playerid, RED, "You already own a vehicle!");
            if (GetPlayerInterior(playerid) != 0) return SendClientMessage(playerid, RED, "You must not be in an interior"); // To prevent screw ups
                GetPlayerPos(playerid, OrgX[playerid], OrgY[playerid], OrgZ[playerid]);
            GetPlayerFacingAngle(playerid, OrgA[playerid]);
            new Float:X,Float:Y;
            new color1 = CarColor[playerid][0];
                new color2 = CarColor[playerid][1];
            X = VEHSHOW_X;
            Y = VEHSHOW_Y;
                TogglePlayerControllable(playerid, false);
                X -= (10.0 * floatsin(-VEHSHOW_A+90, degrees));
                Y -= (10.0 * floatcos(-VEHSHOW_A+90, degrees));
                SetPlayerCameraPos(playerid, X, Y, VEHSHOW_Z);
                X += (10.0 * floatsin(-VEHSHOW_A+90, degrees));
                Y += (10.0 * floatcos(-VEHSHOW_A+90, degrees));
                SetPlayerCameraLookAt(playerid, X, Y, VEHSHOW_Z);
                SetPlayerVirtualWorld(playerid, playerid);
                ShopCar[playerid] = CreateVehicle(CarModels[0], VEHSHOW_X, VEHSHOW_Y, VEHSHOW_Z, 0.0, color1, color2, 6000000);
                SetVehicleVirtualWorld(ShopCar[playerid], playerid);
                PutPlayerInVehicle(playerid, ShopCar[playerid], 0);
                TogglePlayerControllable(playerid, false);
                CarShopping[playerid] = true;
                SetTimerEx("BrowseCars", 300, 0, "d", playerid);
                //SetTimerEx("FreezeCar", 100, 0, "d", playerid);
                }
                return 1;
        }

probaj, uvjek ti mora ici { kod IsPlayerInRangeOfPoint i onda na dnu stavis } iznad return 1;
Uskoro novi stunt server iStunt. DoÄ'ite i zabavite se!




   
   




Dizajniram za $$$
Popis stvari koje radim:

Wallpaper √  Signature ×  Logo √  Dizajn stranice (Ne kodiranje) √  Baner √  Avatar √  Animacija √  Intro √