SA-MP Forums Archive
Objects does not appear - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Objects does not appear (/showthread.php?tid=583580)



Objects does not appear - Fancy - 29.07.2015

Код:
CMD:balloon(playerid,params[])
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    DestroyObject(Balloon[playerid]);
    DestroyObject(Fire[playerid]);
    DestroyObject(Fire1[playerid]);
    PlayerIn[playerid][BalloonPlayer] = 0;
    Balloon[playerid] = CreateObject(19335, x, y, z+3,   0.00, 0.00, 0.00);
    Fire[playerid] = CreateObject(18692, 0,0,0,   0.00, 0.00, 0.00);
    Fire1[playerid] = CreateObject(18692, 0,0,0,   0.00, 0.00, 0.00);
    AttachObjectToObject(Fire[playerid], Balloon[playerid], 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 1);
    AttachObjectToObject(Fire1[playerid], Balloon[playerid], 0.0, 0.0, 4.0, 0.0, 0.0, 0.0, 1);
    SetPlayerPos(playerid,x,y,z+3.5);
    return 1;
}
I made a balloon command but the objects does not appear.


Re: Objects does not appear - Variable™ - 29.07.2015

Removed


Re: Objects does not appear - Fancy - 29.07.2015

Quote:
Originally Posted by 1Deagle1
Посмотреть сообщение
Код:
CMD:balloon(playerid,params[])
{
    new Float:x,Float:y,Float:z;
    GetPlayerPos(playerid, x, y, z);
    PlayerIn[playerid][BalloonPlayer] = 0;
    Balloon[playerid] = CreateObject(19335, x, y, z+3,   0.00, 0.00, 0.00);
    Fire[playerid] = CreateObject(18692, 0,0,0,   0.00, 0.00, 0.00);
    Fire1[playerid] = CreateObject(18692, 0,0,0,   0.00, 0.00, 0.00);
    AttachObjectToObject(Fire[playerid], Balloon[playerid], 0.0, 0.0, 2.0, 0.0, 0.0, 0.0, 1);
    AttachObjectToObject(Fire1[playerid], Balloon[playerid], 0.0, 0.0, 4.0, 0.0, 0.0, 0.0, 1);
    SetPlayerPos(playerid,x,y,z+3.5);
    return 1;
}
Try this.
Nop,dosent worked


AW: Objects does not appear - Kaliber - 29.07.2015

Do it like this:

PHP код:
CMD:balloon(playerid,params[])
{
    new 
Float:x,Float:y,Float:z;
    
GetPlayerPos(playeridxyz);
    
DestroyObject(Balloon[playerid]), DestroyObject(Fire[playerid]),DestroyObject(Fire1[playerid]);
    
PlayerIn[playerid][BalloonPlayer] = 0;
    
Balloon[playerid] = CreateObject(19335xyz+3,   0.000.000.00);
    
Fire[playerid] = CreateObject(18692x,y,z,   0.000.000.00);
    
Fire1[playerid] = CreateObject(18692x,y,z,   0.000.000.00);
    
AttachObjectToObject(Fire[playerid], Balloon[playerid], 0.00.02.00.00.00.01);
    
AttachObjectToObject(Fire1[playerid], Balloon[playerid], 0.00.04.00.00.00.01);
    
SetPlayerPos(playerid,x,y,z+3.5);
    return 
1;




Re: Objects does not appear - Variable™ - 29.07.2015

Removed


Re: Objects does not appear - Fancy - 29.07.2015

Quote:
Originally Posted by 1Deagle1
Посмотреть сообщение
Код:
  
    Balloon[playerid] = CreateObject(19335, x, y, z+3,   0.00, 0.00, 0.00);
    Fire[playerid] = CreateObject(18692, x ,y ,z ,   0.00, 0.00, 0.00);
    Fire1[playerid] = CreateObject(18692, x, y, z,  0.00, 0.00, 0.00);
This will work D':
Nop.