FrOsTy14 4 Odesláno: 15. Únor, 2015 Share Odesláno: 15. Únor, 2015 (upraveno) Zdravím udělal jsem si příkaz na zapnutí světel, ale ve hře mi to jen napíše zprávu, nezapne to světla. if(newkeys == KEY_SUBMISSION) { GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,true,alarm,doors,bonnet,boot,objective); new MSG[128]; new Hname[128]; GetPlayerName(playerid,Hname,128); format(MSG,sizeof(MSG),"*%s zapíná světla !",Hname); SendClientMessageToAll(-1,MSG); } //EDIT: Zkoušel jsem i místo true, 1 Edited 15. Únor, 2015 by FrOsTy14 Link to comment Share on other sites More sharing options...
0 lgaming 0 Odesláno: 15. Únor, 2015 Share Odesláno: 15. Únor, 2015 #define OFF 0 #define ON 1 if(newkeys == KEY_SUBMISSION) { GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,ON,alarm,doors,bonnet,boot,objective); new MSG[128]; new Hname[128]; GetPlayerName(playerid,Hname,128); format(MSG,sizeof(MSG),"*%s zapíná světla !",Hname); SendClientMessageToAll(-1,MSG); } skus toto Link to comment Share on other sites More sharing options...
0 FrOsTy14 4 Odesláno: 15. Únor, 2015 Author Share Odesláno: 15. Únor, 2015 #define OFF 0 #define ON 1 if(newkeys == KEY_SUBMISSION) { GetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,lights,alarm,doors,bonnet,boot,objective); SetVehicleParamsEx(GetPlayerVehicleID(playerid),engine,ON,alarm,doors,bonnet,boot,objective); new MSG[128]; new Hname[128]; GetPlayerName(playerid,Hname,128); format(MSG,sizeof(MSG),"*%s zapíná světla !",Hname); SendClientMessageToAll(-1,MSG); } skus toto nefunguje Mám to Link to comment Share on other sites More sharing options...
Dotaz
FrOsTy14 4
Zdravím udělal jsem si příkaz na zapnutí světel, ale ve hře mi to jen napíše zprávu, nezapne to světla.
//EDIT: Zkoušel jsem i místo true, 1
Edited by FrOsTy14Link to comment
Share on other sites
2 odpovědí na tuto otázku
Recommended Posts