10.08.2011, 18:45
(
Последний раз редактировалось danktog; 10.08.2011 в 19:28.
)
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...
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; } }