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 i = 0; i < MAX_PLANTS; ++i)
{
if(IsValidDynamicObject(Plants[i][pObjectSpawned]) && IsPlayerInRangeOfPoint(playerid, 2.5, Plants[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