[AJUDA]Erro Dialog ..
#8

pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    new pname[MAX_PLAYER_NAME];
    new string[256];

    if(dialogid == 1337)
    {
    if(response)
    {
    if(listitem == 0)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
       if(IsPlayerInAnyVehicle(playerid)) {
       new VehicleID;
       VehicleID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehicleID,-2418.4846,-614.8561,132.2391);
       SetVehicleZAngle(GetPlayerVehicleID(playerid), 35.9913);
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD1 ( /tpd1 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       }
       else{
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD1 ( /tpd1 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       SetPlayerPos(playerid,-2418.4846,-614.8561,132.2391);
       SetPlayerFacingAngle(playerid, 35.9913);
       ResetPlayerWeapons(playerid);
       }
       }
       }
       }
    if(listitem == 1)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
       if(IsPlayerInAnyVehicle(playerid)) {
       new VehicleID;
       VehicleID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehicleID,-302.7378,1532.6254,75.0172);
       SetVehicleZAngle(GetPlayerVehicleID(playerid), 181.0729);
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD2 ( /tpd2 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       }
       else{
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD2 ( /tpd2 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       SetPlayerPos(playerid,-302.7378,1532.6254,75.0172);
       SetPlayerFacingAngle(playerid, 181.0729);
       ResetPlayerWeapons(playerid);
       }
       }
       }
    if(listitem == 2)
    {
    if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
       if(IsPlayerInAnyVehicle(playerid)) {
       new VehicleID;
       VehicleID = GetPlayerVehicleID(playerid);
       SetVehiclePos(VehicleID,1260.8165,-2055.7664,59.0758);
       SetVehicleZAngle(GetPlayerVehicleID(playerid), 267.3261);
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD3 ( /tpd3 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       }
       else{
       GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
       format(string, sizeof(string), "%s Foi Fazer Drift Em TPD3 ( /tpd3 )", pname);
       SendClientMessageToAll(0xFF9900AA, string);
       SetPlayerInterior(playerid,0);
       SetPlayerPos(playerid,1260.8165,-2055.7664,59.0758);
       SetPlayerFacingAngle(playerid, 267.3261);
       ResetPlayerWeapons(playerid);
       }
       }
Isso aн ↑ deve funcionar
Reply


Messages In This Thread
[AJUDA]Erro Dialog .. - by duany123 - 23.08.2010, 20:18
Re: [AJUDA]Erro Dialog .. - by Gustavob - 23.08.2010, 20:43
Re: [AJUDA]Erro Dialog .. - by BiieL - 23.08.2010, 20:47
Re: [AJUDA]Erro Dialog .. - by Gustavob - 23.08.2010, 20:49
Re: [AJUDA]Erro Dialog .. - by duany123 - 23.08.2010, 20:54
Re: [AJUDA]Erro Dialog .. - by Gustavob - 23.08.2010, 21:00
Re: [AJUDA]Erro Dialog .. - by duany123 - 23.08.2010, 21:11
Re: [AJUDA]Erro Dialog .. - by Gustavob - 23.08.2010, 21:15
Re: [AJUDA]Erro Dialog .. - by duany123 - 23.08.2010, 21:21
Re: [AJUDA]Erro Dialog .. - by Gustavob - 23.08.2010, 21:26

Forum Jump:


Users browsing this thread: 5 Guest(s)