pe.vanasek 0 Odesláno: 26. Duben, 2014 Share Odesláno: 26. Duben, 2014 Ahoj lidi , potřebuju poradit , 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 More sharing options...
0 ATomas 290 Odesláno: 26. Duben, 2014 Share Odesláno: 26. Duben, 2014 public test(); { if( ) { }else{ } if( ) { }else{ } if( ) { }else{ } return 1; } Link to comment Share on other sites More sharing options...
0 pe.vanasek 0 Odesláno: 26. Duben, 2014 Author Share Odesláno: 26. Duben, 2014 No ale když potřebuju todle.....tak mi to v autě objekt neudělá 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 More sharing options...
0 KuboSK 0 Odesláno: 26. Duben, 2014 Share Odesláno: 26. Duben, 2014 Ale ak chceš dať objekt do auta tak použi funkciu: http://wiki.sa-mp.com/wiki/AttachObjectToVehicle Link to comment Share on other sites More sharing options...
0 pe.vanasek 0 Odesláno: 26. Duben, 2014 Author Share Odesláno: 26. Duben, 2014 To nee To je objekt před auto.....rampa :D Link to comment Share on other sites More sharing options...
0 Arthom 6 Odesláno: 26. Duben, 2014 Share Odesláno: 26. Duben, 2014 if(rampa[playerid] == 1) a máš vôbec rampa[playerid] nastavené na 1? Link to comment Share on other sites More sharing options...
0 pe.vanasek 0 Odesláno: 26. Duben, 2014 Author Share Odesláno: 26. Duben, 2014 Jojo to jo :D Link to comment Share on other sites More sharing options...
0 bboyadams 1 Odesláno: 26. Duben, 2014 Share Odesláno: 26. Duben, 2014 ... Link to comment Share on other sites More sharing options...
0 Arthom 6 Odesláno: 26. Duben, 2014 Share Odesláno: 26. Duben, 2014 tak potom nemáš keď sa nevytvorí Link to comment Share on other sites More sharing options...
0 pe.vanasek 0 Odesláno: 26. Duben, 2014 Author Share Odesláno: 26. Duben, 2014 Když nejsem ve vozidle tak se vytvoří.... Tak nic lidi, děkuju moc Už to funguje Bylo to tím 1)že tlačítko Fire lze vyvolat při chůzi ctrl a v autě se vyvolá L.alt 2)Jsem deb*l Link to comment Share on other sites More sharing options...
Dotaz
pe.vanasek 0
Ahoj lidi , potřebuju poradit , 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
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 accountSign in
Already have an account? Sign in here.
Sign In Now