- 0
ZCMD Warning 213
-
Similar Content
-
- 2 answers
- 139 views
-
- 2 replies
- 100 views
-
- 2 answers
- 159 views
-
- 2 answers
- 679 views
-
- 9 replies
- 389 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
Nick: Pinki950
Problema: Imi da Warning 213 si nu stiu cum sa o rezolv la linia: if (doors == true)
Erori / warnings: Warning 213
Lini/script: [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]
Ai incercat sa rezolvi singur ?: Da, dar nici o reusita!
Link to comment
Share on other sites
5 answers to this question
Recommended Posts