Near weed?
#5

Quote:
Originally Posted by Rufio
Посмотреть сообщение
Wrong. It won't work if he goes to 0,0,0 coords. Give me a few minutes while I look at your code.

Edit: Are you sure your positions are fine? The object might be underground.
The object spawns at your location, Above the ground, So yea its on teh right posistion

Quote:
Originally Posted by TopShooter
Посмотреть сообщение
First define the MAX plants
PHP код:
#define         MAX_PLANTS                  300 
PHP код:
#define         MAX_PLANTS                  Your amount 
PHP код:
    for(new 0MAX_PLANTS; ++i)
    {
        if(
IsValidDynamicObject(Plants[i][pObjectSpawned]) && IsPlayerInRangeOfPoint(playerid2.5Plants[i][pPos][0], Plants[i][pPos][1], Plants[i][pPos][2]))
        {
            if(
GetPlayerVirtualWorld(playerid) == Plants[i][pVirtual] && GetPlayerInterior(playerid) == Plants[i][pInterior])
            { 
Thanks for your help, But i would like to see some explaination, Because it doens't see the plant now that you created right? You defined somting els
Reply


Messages In This Thread
Near weed? - by lulo356 - 04.02.2016, 13:55
Re: Near weed? - by Matess - 04.02.2016, 14:08
Re: Near weed? - by Rufio - 04.02.2016, 14:16
Re: Near weed? - by TopShooter - 04.02.2016, 14:19
Re: Near weed? - by lulo356 - 04.02.2016, 14:22
Re: Near weed? - by Rufio - 04.02.2016, 14:23
Re: Near weed? - by lulo356 - 04.02.2016, 14:29
Re: Near weed? - by Rufio - 04.02.2016, 14:33
Re: Near weed? - by lulo356 - 04.02.2016, 14:41
Re: Near weed? - by Rufio - 04.02.2016, 14:46

Forum Jump:


Users browsing this thread: 3 Guest(s)