- 0
Comanda ZCMD Warning
-
Similar Content
-
- 2 answers
- 139 views
-
- 2 answers
- 151 views
-
- 2 answers
- 147 views
-
- 1 answer
- 164 views
-
- 12 replies
- 3,122 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
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.
Question
Pinki950
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]
Link to comment
Share on other sites
1 answer to this question
Recommended Posts