Jump to content
  • 0

Comanda ZCMD Warning


Pinki950

Question

Nume: Pinki95

Descriere Problema: Imi da Warning 213 si nu stiu cum sa o rezolv la linia:      if (doors == true)

Pawno Code:

[pawn]CMD:lock(playerid, params[])

{

new engine, lights, alarm, doors, bonnet, boot, objective;

new vehicleid = GetPlayerVehicleID(playerid);//defining vehicleid is = to GetPlayerVehicleID.

SendAdminText(playerid, "/lock", params);

if(IsPlayerInAnyVehicle(playerid))//Thsi will check that is a player In a vehcile or not.

{

if (AVehicleData[GetPlayerVehicleID(playerid)][Owned] == true)

{

if(GetPlayerState(playerid)==PLAYER_STATE_DRIVER)

{

GetVehicleParamsEx(vehicleid,engine,lights,alarm,doors,bonnet,boot,objective);//will check that what is the state of the vehicle lock.

if (doors == true)

{

SetVehicleParamsEx(vehicleid, engine, lights, alarm, false, bonnet, boot, objective);

GameTextForPlayer(playerid,"~r~Masina descuiata!",3000,4);

}

else

{

SetVehicleParamsEx(vehicleid, engine, lights, alarm, true, bonnet, boot, objective);

GameTextForPlayer(playerid,"~b~Masina incuiata!",3000,4);

}

}

else

SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu esti soferul masinii");

}

else

SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nu este masina ta");

}

else

SendClientMessage(playerid,0xFFFFFFFF,"{FF0000}Trebuie sa te aflii intr-o masina");//the error message.

return 1;

}[/pawn]

?q=192&s=s&bg1=5eeb06&bg2=3a7bfc&t=000&gl=fff&b=000000&gbg=000
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.