Jump to content
  • 0

ajutor problema cu tc 1-3


eXorcism

Question

6 answers to this question

Recommended Posts

Schimba cu asta

[pawn]if(strcmp(cmd, "/givecar", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /givecar [1 - 3]");

return 1;

}

new tow;

tow = strval(tmp);

new towcar;

if(tow == 1) { towcar = PlayerInfo[playerid][pPcarkey]; }

  else if(tow == 2) { towcar = PlayerInfo[playerid][pPcarkey2]; }

      else if(tow == 3) { towcar = PlayerInfo[playerid][pPcarkey3]; }

      else {return 1;}

if (PlayerToPoint(2.0,playerid,2819.7729,-1461.1182,16.8513))

{

    if(GetPlayerMoney(playerid) > 100000)

    {

        SafeGivePlayerMoney(playerid, - 100000);

        RepairVehicle(towcar);

        Gas[towcar] = GasMax;

SetVehiclePos(towcar,2813.0661,-1459.1652,16.2534);

SendClientMessage(playerid, COLOR_GRAD1, "  Masina ta a aparut la parter-ul sediului Tow Car Co.!");

SendClientMessage(playerid, COLOR_GRAD1, "  Va rugam sa dati /v park in noua pozitie a masinii!");

SBizzInfo[8][sbTill] += 100000;

}

else

{

    SendClientMessage(playerid, COLOR_GRAD1, "  Nu ai bani destui!");

return 1;

}

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "  Nu esti la sediul Tow Car Company!");

return 1;

}

}

return 1;

}[/pawn]

modifici tu coord

Link to comment
Share on other sites

Schimba cu asta

[pawn]if(strcmp(cmd, "/givecar", true) == 0)

{

    if(IsPlayerConnected(playerid))

    {

tmp = strtok(cmdtext, idx);

if(!strlen(tmp))

{

SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /givecar [1 - 3]");

return 1;

}

new tow;

tow = strval(tmp);

new towcar;

if(tow == 1) { towcar = PlayerInfo[playerid][pPcarkey]; }

  else if(tow == 2) { towcar = PlayerInfo[playerid][pPcarkey2]; }

      else if(tow == 3) { towcar = PlayerInfo[playerid][pPcarkey3]; }

      else {return 1;}

if (PlayerToPoint(2.0,playerid,2819.7729,-1461.1182,16.8513))

{

    if(GetPlayerMoney(playerid) > 100000)

    {

        SafeGivePlayerMoney(playerid, - 100000);

        RepairVehicle(towcar);

        Gas[towcar] = GasMax;

SetVehiclePos(towcar,2813.0661,-1459.1652,16.2534);

SendClientMessage(playerid, COLOR_GRAD1, "  Masina ta a aparut la parter-ul sediului Tow Car Co.!");

SendClientMessage(playerid, COLOR_GRAD1, "  Va rugam sa dati /v park in noua pozitie a masinii!");

SBizzInfo[8][sbTill] += 100000;

}

else

{

    SendClientMessage(playerid, COLOR_GRAD1, "  Nu ai bani destui!");

return 1;

}

}

else

{

SendClientMessage(playerid, COLOR_GRAD1, "  Nu esti la sediul Tow Car Company!");

return 1;

}

}

return 1;

}[/pawn]

modifici tu coord

Nu aveti idee de problema pe care incearca sa o redea pe forum si va bagati cu tot felul de prostii.

Adaugi stimate ID-ul meu de mess (<moderated>) si voi incerca sa te ajut.Seara placuta.

ep41yhufqpagka5wfoornw1wjfjie.png

HTjr_G.png
12975.png
 
Link to comment
Share on other sites

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.