[AJUDA] Teleportes Mod pista...
#1

Ola gente, blz ?
estou fazendo um dialog com os teleportes para as Pista mod, mais ta dando o seguinte erro: quando digita /PistaMod e clika em algum, so ta indo na pista do Ebisu, so nela.
olha o codigo pra ver se esta certo...

Код:
    	if(dialogid == 1112)//
	{
	    if(response == 0)
     	{
	    if(IsPlayerInAnyVehicle(playerid)) {
	    new VehicleID;
	    VehicleID = GetPlayerVehicleID(playerid);
	    SetVehiclePos(VehicleID,-51.0139,-2439.0269,324.7329);
	    new pname[MAX_PLAYER_NAME];
	    new string [256];
	    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Sakina ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
	    SendClientMessageToAll(0xFF9900AA, string);
	    SetPlayerInterior(playerid,0);
	    }
	    else{
        new pname[MAX_PLAYER_NAME];
        new string [256];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Sakina ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
        SendClientMessageToAll(0xFF9900AA, string);
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,-51.0139,-2439.0269,324.7329);
        }
        }
	    if(response == 1)
     	{
	    if(IsPlayerInAnyVehicle(playerid)) {
	    new VehicleID;
	    VehicleID = GetPlayerVehicleID(playerid);
	    SetVehiclePos(VehicleID,1146.0322,-2571.8264,12.2061);
	    new pname[MAX_PLAYER_NAME];
	    new string [256];
	    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Ebisu ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
	    SendClientMessageToAll(0xFF9900AA, string);
	    SetPlayerInterior(playerid,0);
	    }
	    else{
        new pname[MAX_PLAYER_NAME];
        new string [256];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Ebisu ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
        SendClientMessageToAll(0xFF9900AA, string);
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,1146.0322,-2571.8264,12.2061);
        }
	    }
	    if(response == 2)
     	{
	    if(IsPlayerInAnyVehicle(playerid)) {
	    new VehicleID;
	    VehicleID = GetPlayerVehicleID(playerid);
	    SetVehiclePos(VehicleID,566.3971,-801.1214,184.3314);
	    new pname[MAX_PLAYER_NAME];
	    new string [256];
	    GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Akagi ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
	    SendClientMessageToAll(0xFF9900AA, string);
	    SetPlayerInterior(playerid,0);
	    }
	    else{
        new pname[MAX_PLAYER_NAME];
        new string [256];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Akagi ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
        SendClientMessageToAll(0xFF9900AA, string);
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,566.3971,-801.1214,184.3314);
        }
        return 1;
        }
	}
Reply
#2

pawn Код:
if(dialogid == 1112)
{
    if(response)
    {
       if(listitem == 0)
       {
        if(IsPlayerInAnyVehicle(playerid))
            {
             new VehicleID;
             VehicleID = GetPlayerVehicleID(playerid);
             SetVehiclePos(VehicleID,-51.0139,-2439.0269,324.7329);
             new pname[MAX_PLAYER_NAME];
             new string [256];
             GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
                 format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Sakina ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
             SendClientMessageToAll(0xFF9900AA, string);
             SetPlayerInterior(playerid,0);
        }
        else
            {
                 new pname[MAX_PLAYER_NAME];
                 new string [256];
                 GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
                 format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Sakina ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
                 SendClientMessageToAll(0xFF9900AA, string);
                 SetPlayerInterior(playerid,0);
                 SetPlayerPos(playerid,-51.0139,-2439.0269,324.7329);
            }
            return true;
       }
       if(listitem == 1)
       {
        if(IsPlayerInAnyVehicle(playerid))
            {
             new VehicleID;
             VehicleID = GetPlayerVehicleID(playerid);
             SetVehiclePos(VehicleID,1146.0322,-2571.8264,12.2061);
             new pname[MAX_PLAYER_NAME];
             new string [256];
             GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
                 format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Ebisu ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
             SendClientMessageToAll(0xFF9900AA, string);
             SetPlayerInterior(playerid,0);
        }
        else
            {
                 new pname[MAX_PLAYER_NAME];
                 new string [256];
                 GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
                 format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Ebisu ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
                 SendClientMessageToAll(0xFF9900AA, string);
                 SetPlayerInterior(playerid,0);
                 SetPlayerPos(playerid,1146.0322,-2571.8264,12.2061);
            }
            return true;
       }
       if(listitem == 2)
       {
        if(IsPlayerInAnyVehicle(playerid))
            {
             new VehicleID;
             VehicleID = GetPlayerVehicleID(playerid);
             SetVehiclePos(VehicleID,566.3971,-801.1214,184.3314);
             new pname[MAX_PLAYER_NAME];
             new string [256];
             GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
                 format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Akagi ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
             SendClientMessageToAll(0xFF9900AA, string);
             SetPlayerInterior(playerid,0);
       }
       else
           {
                 new pname[MAX_PLAYER_NAME];
                 new string [256];
                 GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
                 format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Akagi ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
                 SendClientMessageToAll(0xFF9900AA, string);
                 SetPlayerInterior(playerid,0);
                 SetPlayerPos(playerid,566.3971,-801.1214,184.3314);
           }
       }
    }
    return true;
}
da um quote aqui й pega o code, porque a identaзгo ficou orrivйl quando eu postei.
porque eu fiz por aqui usando "ESPAЗO".
Reply
#3

pawn Код:
if(dialogid == 1112)//
    {
    if(response == 0)
        {
        return SendClientMessage(playerid, 0xFF9900AA, "Vocк fechou o dialog. ¬¬");
        }
        if(listitem == 0)
        {
        if(IsPlayerInAnyVehicle(playerid)) {
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,-51.0139,-2439.0269,324.7329);
        new pname[MAX_PLAYER_NAME];
        new string [256];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Sakina ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
        SendClientMessageToAll(0xFF9900AA, string);
        SetPlayerInterior(playerid,0);
        }
        else{
        new pname[MAX_PLAYER_NAME];
        new string [256];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Sakina ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
        SendClientMessageToAll(0xFF9900AA, string);
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,-51.0139,-2439.0269,324.7329);
        }
        }
        if(listitem == 1)
        {
        if(IsPlayerInAnyVehicle(playerid)) {
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,1146.0322,-2571.8264,12.2061);
        new pname[MAX_PLAYER_NAME];
        new string [256];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Ebisu ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
        SendClientMessageToAll(0xFF9900AA, string);
        SetPlayerInterior(playerid,0);
        }
        else{
        new pname[MAX_PLAYER_NAME];
        new string [256];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Ebisu ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
        SendClientMessageToAll(0xFF9900AA, string);
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,1146.0322,-2571.8264,12.2061);
        }
        }
        if(listitem == 2)
        {
        if(IsPlayerInAnyVehicle(playerid)) {
        new VehicleID;
        VehicleID = GetPlayerVehicleID(playerid);
        SetVehiclePos(VehicleID,566.3971,-801.1214,184.3314);
        new pname[MAX_PLAYER_NAME];
        new string [256];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Akagi ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
        SendClientMessageToAll(0xFF9900AA, string);
        SetPlayerInterior(playerid,0);
        }
        else{
        new pname[MAX_PLAYER_NAME];
        new string [256];
        GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
        format(string, sizeof(string), "{FFFFFF}[{00FFFF}TELE{FFFFFF}]: {A470B4}%s{FFFFFF} foi para o Mod pista Akagi ~ ( {00FFFF}/ModPista{FFFFFF} )", pname);
        SendClientMessageToAll(0xFF9900AA, string);
        SetPlayerInterior(playerid,0);
        SetPlayerPos(playerid,566.3971,-801.1214,184.3314);
        }
        return 1;
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)