Jump to content
  • 0

[GF/RP] problema comanda /engine


Question

Posted

Buna ziua am si eu 2 problema la comanda de motor:

1.Deci vreau sa nu mai apara /engine [on/off] adica cand dai /engine sa tio porneasca sau sa tio opreasca

2e un bug cand opresti motorul te da jos automat si cand intri inapoi nu te mai poti da jos

CMD

[pawn]dcmd_engine(playerid,params[]){

#pragma unused params

if(IsPlayerConnected(playerid)){

if(!strlen(params)) return SendClientMessage(playerid, COLOR_WHITE, "[uSAGE]: /engine [on/off]");

new vehicle = GetPlayerVehicleID(playerid);

    if(strcmp(params,"on",true) == 0) {

if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {

  if(Vehicle[vehicle][Engine] == 0) { GameTextForPlayer(playerid,"~W~Starting engine",3000,3); SetTimerEx("TurnOnEngine", MAX_START_TIME*1000, 0, "dd", playerid, vehicle); }

} }

    if(strcmp(params,"off",true) == 0) { TurnOffEngine(playerid, vehicle); }

}

return true;

}[/pawn]

MA PUTETI AJUTA? MULTUMESC ANITICIPAT

6 answers to this question

Recommended Posts

Posted

[pawn]dcmd_engine(playerid,params[])

{

#pragma unused params

if(IsPlayerConnected(playerid))

{

new vehicle = GetPlayerVehicleID(playerid);

if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)

{

if(Vehicle[vehicle][Engine] == 0)

{

GameTextForPlayer(playerid,"~W~Starting engine",3000,3);

SetTimerEx("TurnOnEngine", MAX_START_TIME*1000, 0, "dd", playerid, vehicle);

}

else

{

TurnOffEngine(playerid, vehicle);

  }

}

}

return 1;

}[/pawn]

Stiu si eu ... branza e pe bani, dar eu tot ma joc pe gratis!

Posted

Dar nu pot sal comprimes mi se bloceaza si dupaia mi se inchide

Incearca sa vorbesti limba romana sa pot intelege si eu ceva si poate te pot ajuta .  :cool:

Posted

deci am windows 7 si cand am bagat comanda de la ice numi comprimeaza ADICA in loc sami arata erori sau warning sau nimic imi arata ca Nu functioneaza pawn si mi se inchide poza :34707917.png

Uploaded with ImageShack.us

Posted

Sterge toata comanda cu tot cu } si copiaza dupaia ce ti-a dat ice.

Banuiesc ca nu ai sters toate } si ai pus comanda.Tie ti-au ramas } in plus.

gXvsYS
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.