[HELP]Need Help About Teleport Command REP++
#1

Hi,

now i have a bug, when im /teles then click my DriftMap, im not teleported in my DriftMap, im already make OnDialogResponse, this the code

PHP код:
    if(dialogid == DIALOG_TELES)
    {
        if(
response)
        {
            if(
listitem == 0ShowPlayerDialog(playeridDIALOG_AIRPORTSDIALOG_STYLE_LIST"Airports""San Fierro Airport (/sfair) \nLos Santos Airport (/lsair) \nAbandonded Airport (/aa)""Teleport""Cancel");
            if(
listitem == 1ShowPlayerDialog(playeridDIALOG_CITYDIALOG_STYLE_LIST"City""San Fierro (/sf) \nLas Venturas (/lv)""Teleport""Cancel");
            if(
listitem == 2ShowPlayerDialog(playeridDIALOG_PARKOURSDIALOG_STYLE_LIST"Parkours""Bike skills 1 (/bikeskills) \nBike skills 2 (/bikeskills2)""Teleport""Cancel");
            if(
listitem == 3ShowPlayerDialog(playeridDIALOG_FUNDIALOG_STYLE_LIST"Fun""Mount Chilliad (/chilliad) \nMonster Hay (/mh) \nHalfpipe (/hp) \n Waterpack (/wp)""Teleport""Cancel");
            if(
listitem == 4ShowPlayerDialog(playeridDIALOG_DMDIALOG_STYLE_LIST"Deathmatch""Field DM (/fdm) \nMinigun Madness (/mini) \nWar DM (/war) \nRocket DM (/rdm) \nSawn-off DM (/sawndm) \nOne-Shot DM (/odm)""Teleport""Cancel");
            if(
listitem == 5ShowPlayerDialog(playeridDIALOG_NEWDIALOG_STYLE_LIST"New Maps""Dreamy Land (/dreamyland) \nNascar (/nascar) \nSkyroad (/skyroad) \nBayside (/bayside)""Teleport""Cancel");
            if(
listitem == 6ShowPlayerDialog(playeridDIALOG_OTHERSDIALOG_STYLE_LIST"Others""Transfender (/trans) \nArch (/arch)""Teleport""Cancel");
            if(
listitem == 7ShowPlayerDialog(playeridDIALOG_DRIFTMAPDIALOG_STYLE_LIST"DRIFT""Drift1 (/drift1) \nDrift2 (/drift2) \nDrift3 (/drift3) \nDrift4 (/drift4) \nDrift5 (/drift5)""Teleport""Cancel");
        }
    }
    if(
dialogid == DIALOG_AIRPORTS)
    {
        if(
response)
        {
            if(
listitem == 0cmd_sfair(playerid);
            if(
listitem == 1cmd_lsair(playerid);
            if(
listitem == 2cmd_aa(playerid);
        }
    }
    if(
dialogid == DIALOG_CITY)
    {
        if(
response)
        {
            if(
listitem == 0cmd_sf(playerid);
            if(
listitem == 1cmd_lv(playerid);
        }
    }
    if(
dialogid == DIALOG_PARKOURS)
    {
        if(
response)
        {
            if(
listitem == 0cmd_bikeskills(playerid);
            if(
listitem == 1cmd_bikeskills2(playerid);
        }
    }
    if(
dialogid == DIALOG_FUN)
    {
        if(
response)
        {
            if(
listitem == 0cmd_chilliad(playerid);
            if(
listitem == 1cmd_mh(playerid);
            if(
listitem == 2cmd_hp(playerid);
            if(
listitem == 3cmd_wp(playerid);
        }
    }
    if(
dialogid == DIALOG_DM)
    {
        if(
response)
        {
            if(
listitem == 0cmd_fdm(playerid);
            if(
listitem == 1cmd_mini(playerid);
            if(
listitem == 2cmd_war(playerid);
            if(
listitem == 3cmd_rdm(playerid);
            if(
listitem == 4cmd_sawndm(playerid);
            if(
listitem == 5cmd_odm(playerid);
        }
    }
    if(
dialogid == DIALOG_NEW)
    {
        if(
response)
        {
            if(
listitem == 0cmd_dreamyland(playerid);
            if(
listitem == 1cmd_nascar(playerid);
            if(
listitem == 2cmd_skyroad(playerid);
            if(
listitem == 3cmd_bayside(playerid);
        }
    }
    if(
dialogid == DIALOG_OTHERS)
    {
        if(
response)
        {
            if(
listitem == 0cmd_trans(playerid);
            if(
listitem == 1cmd_arch(playerid);
        }
    }
    if(
dialogid == DIALOG_DRIFT)
    {
        if(
response)
        {
            if(
listitem == 0cmd_drift1(playerid);
            if(
listitem == 1cmd_drift2(playerid);
            if(
listitem == 2cmd_drift3(playerid);
            if(
listitem == 3cmd_drift4(playerid);
            if(
listitem == 3cmd_drift5(playerid);
        }
    } 
its my drift commands
PHP код:
CMD:drift1(playeridparams[])
{
    
SetPlayerPos(playerid5924.000,-4716.8574,112.5937);
    
SendClientMessageToAll(0x00B9FFFF""YELLOW"%s Has gone to "GREY" /drift1");
    
GameTextForPlayer(playerid"Welcome To Drift1"30005);
    new 
string[128], pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
format(stringsizeof(string), "~r~%s ~w~has Teleported to ~y~/drift1",pName);
     
SetPlayerVirtualWorld(playerid0);
    return 
1;
}
CMD:drift2(playeridparams[])
{
    
SetPlayerPos(playerid546.1637,-3179.4543,6527.6553);
    
SendClientMessageToAll(0x00B9FFFF""YELLOW"%sHas gone to "GREY" /drift2");
    
GameTextForPlayer(playerid"Welcome To Drift2"30005);
    new 
string[128], pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
format(stringsizeof(string), "~r~%s ~w~has Teleported to ~y~/drift2",pName);
     
SetPlayerVirtualWorld(playerid0);
    return 
1;
}
CMD:drift3(playeridparams[])
{
    
SetPlayerPos(playerid2036.4016,-1710.2401,671.7347);
    
SendClientMessageToAll(0x00B9FFFF""YELLOW"%sHas gone to "GREY" /drift3");
    
GameTextForPlayer(playerid"Welcome To Drift3"30005);
    new 
string[128], pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
format(stringsizeof(string), "~r~%s ~w~has Teleported to ~y~/drift3",pName);
     
SetPlayerVirtualWorld(playerid0);
    return 
1;
}
CMD:drift4(playeridparams[])
{
    
SetPlayerPos(playerid4397.4355,-7.0702,3232.3000);
    
SendClientMessageToAll(0x00B9FFFF""YELLOW"%sHas gone to "GREY" /drift4");
    
GameTextForPlayer(playerid"Welcome To Drift4"30005);
    new 
string[128], pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
format(stringsizeof(string), "~r~%s ~w~has Teleported to ~y~/drift4",pName);
     
SetPlayerVirtualWorld(playerid0);
    return 
1;
}
CMD:drift5(playeridparams[])
{
    
SetPlayerPos(playerid3263.0244,620.8406,229.9219);
    
SendClientMessageToAll(0x00B9FFFF""YELLOW"%sHas gone to "GREY" /drift5");
    
GameTextForPlayer(playerid"Welcome To Drift5"30005);
    new 
string[128], pName[MAX_PLAYER_NAME];
    
GetPlayerName(playeridpNameMAX_PLAYER_NAME);
    
format(stringsizeof(string), "~r~%s ~w~has Teleported to ~y~/drift5",pName);
     
SetPlayerVirtualWorld(playerid0);
    return 
1;

please help me, im using Syntax Game Mode Edited By Biker22

Thanks and sorry for my bad english.
Reply
#2

no errors?
Reply
#3

Change all
PHP код:
if(listitem == 0cmd_sfair(playerid); 
to:
PHP код:
if(listitem == 0cmd_sfair(playerid""); 
Reply
#4

Quote:
Originally Posted by LazyBoyyyy
Посмотреть сообщение
no errors?
No Error But I Cant Teleported To My DriftMap

Quote:
Originally Posted by ATGOggy
Посмотреть сообщение
Change all
PHP код:
if(listitem == 0cmd_sfair(playerid); 
to:
PHP код:
if(listitem == 0cmd_sfair(playerid""); 
Im Already Change That, But Still Same Problem
Reply
#5

You already changed that....
Reply
#6

Change DIALOG_DRIFTMAP to DIALOG_DRIFT here:
pawn Код:
if(listitem == 7) ShowPlayerDialog(playerid, DIALOG_DRIFTMAP, DIALOG_STYLE_LIST, "DRIFT", "Drift1 (/drift1) \nDrift2 (/drift2) \nDrift3 (/drift3) \nDrift4 (/drift4) \nDrift5 (/drift5)", "Teleport", "Cancel");
Because this is what you verify here:
pawn Код:
if(dialogid == DIALOG_DRIFT)
Or you can change both to DIALOG_DRIFTMAP.
Reply
#7

Can you show/teles command?
Reply
#8

Quote:
Originally Posted by Tanky
Посмотреть сообщение
Change DIALOG_DRIFTMAP to DIALOG_DRIFT here:
pawn Код:
if(listitem == 7) ShowPlayerDialog(playerid, DIALOG_DRIFTMAP, DIALOG_STYLE_LIST, "DRIFT", "Drift1 (/drift1) \nDrift2 (/drift2) \nDrift3 (/drift3) \nDrift4 (/drift4) \nDrift5 (/drift5)", "Teleport", "Cancel");
Because this is what you verify here:
pawn Код:
if(dialogid == DIALOG_DRIFT)
Or you can change both to DIALOG_DRIFTMAP.
Oh Thanks Tanky, 1REP For You !!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)