My object problem
#7

Quote:
Originally Posted by Kush
Посмотреть сообщение
He is using it correctly. Instead of making accusations, why not tell him how to solve the problem?



Try mine:

PHP код:
new Object[MAX_PLAYERS];
YCMD:getstretcher(playeridparams[], help)
{
    new 
Float:XFloat:YFloat:Z;
    
#pragma unused help
    #pragma unused params
    
Object[playerid] = CreateObject(2146XYZ00075.0);
     
AttachObjectToPlayer(Object[playerid], playerid,  -0.5065041.5049880.0315840.00000089.5666350.000000);
    return 
1;
}
YCMD:removestretcher(playeridparams[], help)
{
    
#pragma unused help
    #pragma unused params
    
DestroyObject(Object[playerid]);
    return 
1;

it's looks just like my command

Quote:
Originally Posted by varthshenon
Посмотреть сообщение
Why you said so?

I don't see any problem with your little code. Perhaps there's something to do with your command in another line.
Is the object created or not?
Yes the object is created and it's attached to the player but after using Destroying the object (which works also)
i can't use the /getstretcher command anymore.
Reply


Messages In This Thread
My object problem - by Soumi - 16.08.2011, 11:15
Re: My object problem - by MadeMan - 16.08.2011, 11:27
Re : My object problem - by Soumi - 16.08.2011, 11:53
Re: My object problem - by ElieJabbour - 16.08.2011, 14:40
Re: Re : My object problem - by Kush - 16.08.2011, 14:55
Re: My object problem - by =WoR=Varth - 16.08.2011, 15:00
Re: My object problem - by Soumi - 16.08.2011, 15:21
Re: My object problem - by =WoR=Varth - 16.08.2011, 15:28
Re: My object problem - by Soumi - 16.08.2011, 15:30
Re: My object problem - by Kush - 16.08.2011, 15:31

Forum Jump:


Users browsing this thread: 4 Guest(s)