SA-MP Forums Archive
script help - 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: script help (/showthread.php?tid=597323)



script help - GeneralAref - 29.12.2015

i have this.How can something that works in all directions?
PHP код:
CMD:carepack(playeridparams[])
{
    new 
Float:xFloat:yFloat:zFloat:aplane;
    
GetPlayerPos(playeridxyz);
    
GetPlayerFacingAngle(playerida);
    
plane CreateObject(1683xy+274.4658z+83.31580.00.00.0);
    
SetObjectRot(plane00a+90);
    
MoveObject(planexy-184.3464z+83.315815.00);
    
SetTimerEx("endcarepack"15000false"ifff"planeFloat:xFloat:yFloat:z);
      return 
1;
}
forward endcarepack(planeFloat:xFloat:yFloat:z);
public 
endcarepack(planeFloat:xFloat:yFloat:z)
{
    new 
pack;
    
pack CreateObject(18849xyz+82.41040.00.00.0);
    
MoveObject(packFloat:xFloat:yFloat:z+6.21044.00);
    
SetTimerEx("dplane"5000false"i"plane);
    return 
1;
}
forward dplane(plane);
public 
dplane(plane)
{
    if(
IsValidObject(plane)) DestroyObject(plane);
    return 
1;




Re: script help - AndySedeyn - 29.12.2015

Why do you use the 'Float:' tag everywhere? The variables are already declared as floats, the compiler knows they have to be handled as floats, there's no need to use the tag everywhere.

What exactly is your question?


Re: script help - GeneralAref - 29.12.2015




Re: script help - nomiii - 29.12.2015

what are you asking about i didnt understand your question


Re: script help - GeneralAref - 29.12.2015

test this code. I do not know how to explain


Re: script help - GeneralAref - 30.12.2015

i need this please help me.