/teles dialog problem...
#1

hey guys,
when i enter /teles in my server then there is nothing happening... and this is my command and dialog response:

pawn Код:
if ( dialogid == 200 )// teleports
        {
        /* if second button pressed */
        if ( !response ) return SendClientMessage( playerid, -1, "TDC_BOT: You have canceled" );
        /* if first button pressed */
        if ( response )
        {
            switch ( listitem )
            {
            case 0:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, 2610.5095,-2469.2476,3.0000);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, 2610.5095,-2469.2476,3.0000);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to the Boat Stunt!");
            }
            case 1:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, -1398.103515,937.631164,1036.479125);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 15);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, -1398.103515,937.631164,1036.479125);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 15);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to the derby!");
            }
            case 2:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, -2279.6414,2017.9814,265.6766);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, -2279.6414,2017.9814,265.6766);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to the Drag Race! now beat your opponent!");
            }
            case 3:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, -2254.1101,-1141.3745,609.1346);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, -2254.1101,-1141.3745,609.1346);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to the driftking!");
            }
            case 4:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, 2385.0134,1030.7831,10.8203);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, 2385.0134,1030.7831,10.8203);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to Las Venturas Tuning Garage!");
            }
            case 5:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, 1040.8041,-1032.2076,32.0148);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, 1040.8041,-1032.2076,32.0148);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to Los Santos Tuning Garage!");
            }
            case 6:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, -1935.9169,234.4120,34.3125);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, -1935.9169,234.4120,34.3125);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to San Fierro Tuning Garage!");
            }
            case 7:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, -2706.3394,218.2382,4.1797);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, -2706.3394,218.2382,4.1797);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to Wheel Arch Angels!");
            }
            case 8:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, 2644.9099,-2022.1721,13.5469);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, 2644.9099,-2022.1721,13.5469);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to Loco Low Co Tuning Garage!");
            }
            case 9:
            {
            if(!IsPlayerInAnyVehicle(playerid)){
            SetPlayerPos(playerid, 2885.2529,-2387.7244,7.8172);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetPlayerFacingAngle(playerid, 0.0);
            SetPlayerInterior(playerid, 0);
            SetPlayerVirtualWorld(playerid, 0);
            }
            else{
            new veh = GetPlayerVehicleID(playerid);
            SetVehiclePos(veh, 2885.2529,-2387.7244,7.8172);
            TogglePlayerControllable(playerid, 0);
            SetTimerEx("Unfreeze", 2000, 0, "d", playerid);
            GameTextForPlayer(playerid,"Waiting for the Objects to load",2000,6);
            SetVehicleZAngle(veh, 0.0);
            LinkVehicleToInterior(veh, 0);
            SetVehicleVirtualWorld(veh, 0);
            PutPlayerInVehicle(playerid, veh, 0);
            }
            return SendClientMessage(playerid, 0xFF0000FF, "you have gone to the Kart Race! pick a kart!");
            }
            case 10:
            {
            ShowPlayerDialog(playerid, 300, DIALOG_STYLE_LIST, "Drifts", "Drift1\nDrift2\nDrift3", "ok", "cancel");
            }
            case 11:
            {
            ShowPlayerDialog(playerid, 400, DIALOG_STYLE_LIST, "Stunts", "/stunt1\n/stunt2\n/stunt3{FF0000}", "ok", "cancel");
            }
            }
        }
    }
COMMAND:
pawn Код:
CMD:teles(playerid, params[])
{
    ShowPlayerDialog(playerid, 200, DIALOG_STYLE_LIST, "Teleports", "Boatstunt\nDerby\nDrag\nDriftking\nLvtune\nLstune\nSftune\nArch\nLoco\nKart\nDrift[1/3]\nStunt[1/3]", "spawn", "cancel");
    return 1;
}
and i already tried to put above teh ShowPlayerDialog at my cmd #pragma unused params but that ain't working...
can anyone pls help me this is the last thing to do before i can publish NYD_Drifting version 4 here on samp forum but if this aint working then i can't pub it here becuz i made lots of teles...
PLS HELP!

niels
Reply


Messages In This Thread
/teles dialog problem... - by niels44 - 02.01.2012, 16:33
Re: /teles dialog problem... - by niels44 - 02.01.2012, 17:11
Re: /teles dialog problem... - by niels44 - 02.01.2012, 18:16
Re: /teles dialog problem... - by niels44 - 02.01.2012, 18:30
Re: /teles dialog problem... - by Bogdan1992 - 02.01.2012, 23:01

Forum Jump:


Users browsing this thread: 2 Guest(s)