Jump to content
  • 0

pomoc Světla


FrOsTy14

Dotaz

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 by FrOsTy14
Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0
#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

  • 0
#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

Guest
This topic is now closed to further replies.
×
×
  • Create New...