Jump to content
  • 0

pomoc else


pe.vanasek

Dotaz

Ahoj lidi , potřebuju poradit :d, když mám:

public test();

(

if(........);

(

if(.......);

(

if(.....);

(

)

)

)

return 1;

)

 

Když chci na každou funkci else, tak jak to mám udělat aby to platilo na každou zvlášt? :) Děkuju :)

Link to comment
Share on other sites

9 odpovědí na tuto otázku

Recommended Posts

  • 0

No ale když potřebuju todle.....tak mi to v autě objekt neudělá :d

 

if(newkeys == KEY_FIRE)
{
if(rampa[playerid] == 1)
{
if(!IsPlayerInAnyVehicle(playerid))
{
new Float:x,Float:y,Float:z,Float:a;
GetPlayerFacingAngle(playerid,a);
GetPlayerPos(playerid, x, y, z);
GetXYInFrontOfPoint(x,y,a,3.0);
CreateObject(1660, x, y, z, 0, 0, a+90);
}else{
new Float:x,Float:y,Float:z,Float:a;
new vozidlo;
vozidlo = GetPlayerVehicleID(playerid);
GetVehicleZAngle(vozidlo, a);
GetPlayerPos(playerid, x, y, z);
GetXYInFrontOfPoint(x,y,a,3.0);
CreateObject(1660, x, y, z, 0, 0, a+90);
}
}
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...