Need Help.....!!!!
#1

i got a good dialog system but got some bugs can any fix these.................

E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(41) : error 017: undefined symbol "TELES_1"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(45) : error 017: undefined symbol "TELES_2"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(49) : error 017: undefined symbol "TELES_3"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(53) : error 017: undefined symbol "TELES_4"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(57) : error 017: undefined symbol "TELES_5"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(61) : error 017: undefined symbol "TELES_6"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(65) : error 017: undefined symbol "TELES_7"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(69) : error 017: undefined symbol "TELES_8"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(73) : error 017: undefined symbol "TELES_9"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(77) : error 017: undefined symbol "TELES_10"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(89) : error 017: undefined symbol "TELES_1"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(175) : error 017: undefined symbol "TELES_2"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(207) : error 017: undefined symbol "TELES_3"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(254) : error 017: undefined symbol "TELES_4"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(301) : error 017: undefined symbol "TELES_5"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(41 : error 017: undefined symbol "TELES_6"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(465) : error 017: undefined symbol "TELES_7"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(487) : error 017: undefined symbol "TELES_8"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(534) : error 017: undefined symbol "TELES_9"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


19 Errors.



anyone plz help...............
Reply
#2

Quote:
Originally Posted by ronaldoraul
Посмотреть сообщение
i got a good dialog system but got some bugs can any fix these.................

E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(41) : error 017: undefined symbol "TELES_1"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(45) : error 017: undefined symbol "TELES_2"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(49) : error 017: undefined symbol "TELES_3"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(53) : error 017: undefined symbol "TELES_4"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(57) : error 017: undefined symbol "TELES_5"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(61) : error 017: undefined symbol "TELES_6"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(65) : error 017: undefined symbol "TELES_7"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(69) : error 017: undefined symbol "TELES_8"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(73) : error 017: undefined symbol "TELES_9"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(77) : error 017: undefined symbol "TELES_10"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(89) : error 017: undefined symbol "TELES_1"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(175) : error 017: undefined symbol "TELES_2"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(207) : error 017: undefined symbol "TELES_3"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(254) : error 017: undefined symbol "TELES_4"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(301) : error 017: undefined symbol "TELES_5"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(41 : error 017: undefined symbol "TELES_6"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(465) : error 017: undefined symbol "TELES_7"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(487) : error 017: undefined symbol "TELES_8"
E:\vyom\MYPEND~1\GTASAN~1\MYNEWS~1\FILTER~1\jtele. pwn(534) : error 017: undefined symbol "TELES_9"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


19 Errors.



anyone plz help...............
Code please?
Reply
#3

Quote:
Originally Posted by [DDC]Delight
Посмотреть сообщение
Code please?
ahh here these are

#include <a_samp>

#define FILTERSCRIPT
#define TELES 1200
#define COLOR_RED 0xAA3333AA
new DMZone[MAX_PLAYERS];

public OnFilterScriptInit()
{
print("\n J-Tele FS loaded.\n");
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/teles", cmdtext, true, 10) == 0)
{
ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "\nPlaces\nPlaces2\nVPlaces\nVPlaces2\nFun\nDm\nJu mps\nRaces\nTuning\nInteriors\nRespawn", "Select", "Cancel");
return 1;
}
return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == TELES) // Teleport Dialog
{
if(response)
{
if(listitem == 0) // Places's
{
ShowPlayerDialog(playerid, TELES_1, DIALOG_STYLE_LIST, "Teleport to", "\nAbandon Airport\nMount Chilliad\nAtlantis\nLos Santos Airport\nHunter Quarry\nSheradam Dam\nSkate\nDerby\nDerby2\nNRG Bowl\nBack", "Select", "Cancel");
}
if(listitem == 1) // Places2's
{
ShowPlayerDialog(playerid, TELES_2, DIALOG_STYLE_LIST, "Teleport to", "\nFarm\nLiberty City\nSan Fierro\nLas Venturas\nLos Santos\nPier 69 Ship\nParkour 1\nParkour 2\nParkour 3\nPyramid\nDowntown LS\nDilli\nWhetstone\nShitlake\nPirate Ship\nBack", "Select", "Cancel");
}
if(listitem == 2) // VPlaces's
{
ShowPlayerDialog(playerid, TELES_3, DIALOG_STYLE_LIST, "Teleport to", "\nVinewood\nLos Santos Beach\nBMX Bike Course\nArea 51\nLos Santos Police Department\nCars Gallery\nBike Gallery\nSan Fierro Docks\nLas Venturas Airport\nSan Fierro Airport\nBack", "Select", "Cancel");
}
if(listitem == 3) // VPlaces's 2
{
ShowPlayerDialog(playerid, TELES_4, DIALOG_STYLE_LIST, "Teleport to", "\nSpray\nBomb\nPredators\nBikes\nBack", "Select", "Cancel");
}
if(listitem == 4) // Fun
{
ShowPlayerDialog(playerid, TELES_5, DIALOG_STYLE_LIST, "Teleport to", "\nEaster Egg\nDive +1000\nTrampoline\nCar Sumo\nPipe\nOmg\nJetmax\nBack", "Select", "Cancel");
}
if(listitem == 5) // DM
{
ShowPlayerDialog(playerid, TELES_6, DIALOG_STYLE_LIST, "Teleport to", "\nMinigun\nWang\nSniper\nDildo\nCatch the dealer\nTeepee\nGolf\nBack", "Select", "Cancel");
}
if(listitem == 6) // Jumps
{
ShowPlayerDialog(playerid, TELES_7, DIALOG_STYLE_LIST, "Teleport to", "\nHuge Jump\nWater Jump\nSky Jump\nBeach Jump\nDeath Jump\nPier Jump\nCool Jump 1\nIncredible Jump\nLos Santos Jump 1\nLas Venturas Jump 1\nLas Venturas Jump 3\nLas Venturas Jump\nSan Fierro Jump 1\nBack", "Select", "Cancel");
}
if(listitem == 7) // Races
{
ShowPlayerDialog(playerid, TELES_8, DIALOG_STYLE_LIST, "Teleport to", "\nDrift\nDrift2\nDrift3\nDrag\nDrag2\nDrag3\nStad ium\nRMC\nBack", "Select", "Cancel");
}
if(listitem == // Tuning
{
ShowPlayerDialog(playerid, TELES_9, DIALOG_STYLE_LIST, "Teleport to", "\nTransFender LV\nTransfender LS\nArch Mod Shop\nLoco LoCo.\nBack", "Select", "Cancel");
}
if(listitem == 9) // Interiors
{
ShowPlayerDialog(playerid, TELES_10, DIALOG_STYLE_LIST, "Teleport to", "\nBurger\nSex club\nDance Club\nStadium 1\nMD\nBulletshop\nBack", "Select", "Cancel");
}
if(listitem == 10) // Respawn
{
ResetPlayerMoney(playerid);
SetPlayerInterior(playerid, 0);
SpawnPlayer(playerid);
}
}
return 1;
}

if(dialogid == TELES_1) // Places's
{
if(response)
{
if(listitem == 0) // AA
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
SetPlayerInterior(playerid, 0);
SetPlayerPosWV(playerid, 397.6663,2460.0630,16.5000);
ResetPlayerWeapons(playerid);
}
if(listitem == 1) // MC
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
SetPlayerInterior(playerid, 0);
SetPlayerPosWV(playerid, -2316.3831,-1664.7451,483.149;
GameTextForPlayer(playerid, "~y~Mount Chilliad", 4000, 6);
ResetPlayerWeapons(playerid);
}
if(listitem == 2) // Atlantis
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
SetPlayerInterior(playerid, 0);
SetPlayerPosWV(playerid, -1696.7028,185.9553,-52.0744);
GameTextForPlayer(playerid, "~y~Atlantis", 4000, 6);
ResetPlayerWeapons(playerid);
}
if(listitem == 3) // LSA
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
SetPlayerInterior(playerid, 0);
SetPlayerPosWV(playerid, 1882.1278,-2395.2168,15.8011);
GameTextForPlayer(playerid, "~y~Los Santos Airport", 4000, 6);
ResetPlayerWeapons(playerid);
}
if(listitem == 4) // quarry
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 816.3667,856.1069,12.7891);
GameTextForPlayer(playerid, "~y~Quarry", 4000, 6);
}
if(listitem == 5) // dam
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
SetPlayerInterior(playerid, 0);
SetPlayerPosWV(playerid, -913.4705,2010.1625,60.9141);
GameTextForPlayer(playerid, "~y~The Dam", 4000, 6);
ResetPlayerWeapons(playerid);
}
if(listitem == 6) // skate
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 1904.6875,-1361.4738,13.5182);
GameTextForPlayer(playerid, "~y~Skate", 4000, 6);
}
if(listitem == 7) // derby
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
SetPlayerInterior(playerid, 15);
SetPlayerPos(playerid, -1317.1908,945.8188,1036.4867);
GameTextForPlayer(playerid, "~y~derby", 4000, 6);
}
if(listitem == // derby2
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, -1394.8817,-215.5168,1051.1439);
GameTextForPlayer(playerid, "~y~derby2", 4000, 6);
}
if(listitem == 9) // bowl
{
if(DMZone[playerid] == 1) return SendClientMessage(playerid,COLOR_RED, "ERROR: You can't use this command in DM!");
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -1649.5802,130.0506,3.5547);
GameTextForPlayer(playerid, "~y~NRG Bowl", 4000, 6);
}
if(listitem == 10) // Back
{
ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "\nPlaces\nPlaces2\nVPlaces\nVPlaces2\nFun\nDm\nJu mps\nRaces\nTuning\nInteriors\nRespawn", "Select", "Cancel");
}
}
return 1;
}

if(dialogid == TELES_2) // Airports/Aeroplane's
{
if(response)
{
if(listitem == 0) // Francis Intn'l Airport - Ticket sales
{
SetPlayerInterior(playerid, 14);
SetPlayerPos(playerid, -1827.1473, 7.2074, 1061.1435);
}
if(listitem == 1) // Francis Intn'l Airport - Baggage claim
{
SetPlayerInterior(playerid, 14);
SetPlayerPos(playerid, -1855.5687, 41.2631, 1061.1435);
}
if(listitem == 2) // Shamal cabin
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 2.3848, 33.1033, 1199.8499);
}
if(listitem == 3) // Andromada cargo hold
{
SetPlayerInterior(playerid, 9);
SetPlayerPos(playerid, 315.8561, 1024.4964, 1949.7973);
}
if(listitem == 4) // Back
{
ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "\nPlaces\nPlaces2\nVPlaces\nVPlaces2\nFun\nDm\nJu mps\nRaces\nTuning\nInteriors\nRespawn", "Select", "Cancel");
}
}
return 1;
}

if(dialogid == TELES_3) // Ammunation's
{
if(response)
{
if(listitem == 0) // Ammunation 1
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 286.1489, -40.6443, 1001.5699);
}
if(listitem == 1) // Ammunation 2
{
SetPlayerInterior(playerid, 4);
SetPlayerPos(playerid, 286.8009, -82.5476, 1001.5399);
}
if(listitem == 2) // Ammunation 3
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, 296.9199, -108.0719, 1001.5699);
}
if(listitem == 3) // Ammunation 4
{
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, 314.8209, -141.4319, 999.6619);
}
if(listitem == 4) // Ammunation 5
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, 316.5249, -167.7069, 999.6619);
}
if(listitem == 5) // Booth
{
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, 302.2928, -143.1390, 1004.0625);
}
if(listitem == 6) // Range
{
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, 280.7951, -135.2033, 1004.0625);
}
if(listitem == 7) // Back
{
ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "\nPlaces\nPlaces2\nVPlaces\nVPlaces2\nFun\nDm\nJu mps\nRaces\nTuning\nInteriors\nRespawn", "Select", "Cancel");
}
}
return 1;
}

if(dialogid == TELES_4) // Burglary Houses
{
if(response)
{
if(listitem == 0) // House 1
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 235.5089, 1189.1698, 1080.3399);
}
if(listitem == 1) // House 2
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 225.7569, 1240.0000, 1082.1499);
}
if(listitem == 2) // House 3
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 223.0439, 1289.2598, 1082.1999);
}
if(listitem == 3) // House 4
{
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, 225.6309, 1022.4799, 1084.0699);
}
if(listitem == 4) // House 5
{
SetPlayerInterior(playerid, 15);
SetPlayerPos(playerid, 295.1389, 1474.4699, 1080.519;
}
if(listitem == 5) // House 6
{
SetPlayerInterior(playerid, 15);
SetPlayerPos(playerid, 328.4939, 1480.5899, 1084.4499);
}
if(listitem == 6) // House 7
{
SetPlayerInterior(playerid, 15);
SetPlayerPos(playerid, 385.8039, 1471.7698, 1080.2099);
}
if(listitem == 7) // Back
{
ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "\nPlaces\nPlaces2\nVPlaces\nVPlaces2\nFun\nDm\nJu mps\nRaces\nTuning\nInteriors\nRespawn", "Select", "Cancel");
}
}
return 1;
}

if(dialogid == TELES_5) // Interiors from Missions/Cutscenes
{
if(response)
{
if(listitem == 0) // Atrium
{
SetPlayerInterior(playerid, 1;
SetPlayerPos(playerid, 1726.18, -1641.00, 20.23);
}
if(listitem == 1) // Big Smoke's Crack Palace
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 2567.52, -1294.59, 1063.25);
}
if(listitem == 2) // Bloodbowl Stadium
{
SetPlayerInterior(playerid, 15);
SetPlayerPos(playerid, -1394.20, 987.62, 1023.96);
}
if(listitem == 3) // Burning Desire House
{
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, 2338.32, -1180.61, 1027.9;
}
if(listitem == 4) // Colonel Furhberger's
{
SetPlayerInterior(playerid, ;
SetPlayerPos(playerid, 2807.63, -1170.15, 1025.57);
}
if(listitem == 5) // Dillimore Gas Station
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 664.19, -570.73, 16.34);
}
if(listitem == 6) // Francis International Airport
{
SetPlayerInterior(playerid, 14);
SetPlayerPos(playerid, -1830.81, 16.83, 1061.14);
}
if(listitem == 7) // Jefferson Motel
{
SetPlayerInterior(playerid, 15);
SetPlayerPos(playerid, 2220.26, -1148.01, 1025.80);
}
if(listitem == // Kickstart Stadium
{
SetPlayerInterior(playerid, 14);
SetPlayerPos(playerid, -1410.72, 1591.16, 1052.53);
}
if(listitem == 9) // Liberty City
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, -750.80, 491.00, 1371.70);
}
if(listitem == 10) // Los Santos Airport, Baggage Reclaim
{
SetPlayerInterior(playerid, 14);
SetPlayerPos(playerid, -1870.80, 59.81, 1056.25);
}
if(listitem == 11) // Jizzy's
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, -2637.69, 1404.24, 906.46);
}
if(listitem == 12) // RC Battlefield
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, -1079.99, 1061.58, 1343.04);
}
if(listitem == 13) // Ryders House
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 2451.77, -1699.80, 1013.51);
}
if(listitem == 14) // San Fierro Garage Interior
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, -2042.42, 178.59, 28.84);
}
if(listitem == 15) // Sweets House
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 2535.83, -1674.32, 1015.50);
}
if(listitem == 16) // Welcome Pump
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 681.66, -453.32, -25.61);
}
if(listitem == 17) // Woozies Apartment
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, -2158.72, 641.29, 1052.3;
}
if(listitem == 1 // 8 Track Stadium
{
SetPlayerInterior(playerid, 7);
SetPlayerPos(playerid, -1395.958, -208.197, 1051.170);
}
if(listitem == 19) // Dirt Bike Stadium
{
SetPlayerInterior(playerid, 4);
SetPlayerPos(playerid, -1424.9319, -664.5869, 1059.8585);
}
if(listitem == 20) // Crack Den
{
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, 318.565, 1115.210, 1082.9;
}
if(listitem == 21) // Back
{
ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "\nPlaces\nPlaces2\nVPlaces\nVPlaces2\nFun\nDm\nJu mps\nRaces\nTuning\nInteriors\nRespawn", "Select", "Cancel");
}
}
return 1;
}

if(dialogid == TELES_6) // Safe Houses
{
if(response)
{
if(listitem == 0) // Golden Bed Motel Room
{
SetPlayerInterior(playerid, 9);
SetPlayerPos(playerid, 2251.85, -1138.16, 1050.63);
}
if(listitem == 1) // Hashbury House
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 2260.76, -1210.45, 1049.02);
}
if(listitem == 2) // Johnsons House
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 2496.65, -1696.55, 1014.74);
}
if(listitem == 3) // Madd Doggs Mansion
{
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, 1299.14, -794.77, 1084.00);
}
if(listitem == 4) // Red Bed Motel Room
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 2262.83, -1137.71, 1050.63);
}
if(listitem == 5) // Verdant Bluffs Safehouse
{
SetPlayerInterior(playerid, 9);
SetPlayerPos(playerid, 2365.42, -1131.85, 1050.8;
}
if(listitem == 6) // Zeros RC Shop
{
SetPlayerInterior(playerid, 6);
SetPlayerPos(playerid, -2240.00, 131.00, 1035.40);
}
if(listitem == 7) // Back
{
ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "\nPlaces\nPlaces2\nVPlaces\nVPlaces2\nFun\nDm\nJu mps\nRaces\nTuning\nInteriors\nRespawn", "Select", "Cancel");
}
}
return 1;
}

if(dialogid == TELES_7) // Unused Interiors
{
if(response)
{
if(listitem == 0) // SF Police Department
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 246.40, 110.84, 1003.22);
}
if(listitem == 1) // Unused Safe House
{
SetPlayerInterior(playerid, 12);
SetPlayerPos(playerid, 2324.33, -1144.79, 1050.71);
}
if(listitem == 2) // Back
{
ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "\nPlaces\nPlaces2\nVPlaces\nVPlaces2\nFun\nDm\nJu mps\nRaces\nTuning\nInteriors\nRespawn", "Select", "Cancel");
}
}
return 1;
}

if(dialogid == TELES_ // Shops, Casinos
{
if(response)
{
if(listitem == 0) // Tattoos
{
SetPlayerInterior(playerid, 16);
SetPlayerPos(playerid, -203.0764, -24.1658, 1002.2734);
}
if(listitem == 1) // Burger Shot
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 363.4129, -74.5786, 1001.507;
}
if(listitem == 2) // Well Stacked Pizza
{
SetPlayerInterior(playerid, 5);
SetPlayerPos(playerid, 372.3520, -131.6510, 1001.4922);
}
if(listitem == 3) // Cluckin' Bell
{
SetPlayerInterior(playerid, 9);
SetPlayerPos(playerid, 365.7158, -9.8873, 1001.8516);
}
if(listitem == 4) // Caligulas Casino
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 2233.8032, 1712.2303, 1011.7632);
}
if(listitem == 5) // Four Dragons Casino
{
SetPlayerInterior(playerid, 10);
SetPlayerPos(playerid, 2016.2699, 1017.7790, 996.8750);
}
if(listitem == 6) // Rusty Brown's Donuts
{
SetPlayerInterior(playerid, 17);
SetPlayerPos(playerid, 378.026, -190.5155, 1000.632;
}
if(listitem == 7) // Back
{
ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "\nPlaces\nPlaces2\nVPlaces\nVPlaces2\nFun\nDm\nJu mps\nRaces\nTuning\nInteriors\nRespawn", "Select", "Cancel");
}
}
return 1;
}

if(dialogid == TELES_9) // Modding shops
{
if(response)
{
if(listitem == 0) // Loco Low
{
SetPlayerInterior(playerid, 2);
SetPlayerPos(playerid, 616.7820, -74.8151, 997.6350);
}
if(listitem == 1) // Wheel Arch Angels
{
SetPlayerInterior(playerid, 3);
SetPlayerPos(playerid, 615.2851, -124.2390, 997.6350);
}
if(listitem == 2) // Transfender
{
SetPlayerInterior(playerid, 1);
SetPlayerPos(playerid, 617.5380, -1.9900, 1000.6829);
}
if(listitem == 3) // Back
{
ShowPlayerDialog(playerid, TELES, DIALOG_STYLE_LIST, "Teleport Categories", "\nPlaces\nPlaces2\nVPlaces\nVPlaces2\nFun\nDm\nJu mps\nRaces\nTuning\nInteriors\nRespawn", "Select", "Cancel");
}
}
return 1;
}

return 0;
}

SetPlayerPosWV(playerid, Float:X, Float:Y, Float:Z)
{
SetPlayerPosEx(playerid,X,Y,Z);
if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z);
LinkVehicleToInterior(GetPlayerVehicleID(playerid) ,0);
PutPlayerInVehicle(playerid,GetPlayerVehicleID(pla yerid),0);
SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0) ;
}
}
SetPlayerPosEx(playerid, Float:X, Float:Y, Float:Z)
{
SetPlayerPos(playerid,X,Y,Z);
SetPlayerInterior(playerid,0);
ResetPlayerWeapons(playerid);
SetPlayerWorldBounds(playerid, 99999.0, -99999.0, 99999.0, -99999.0);
}
Reply
#4

Alright, try to place this ontop of your script:

#define TELES_1 101
#define TELES_2 102
#define TELES_3 103
#define TELES_4 104
#define TELES_5 105
#define TELES_6 106
#define TELES_7 107
#define TELES_8 108
#define TELES_9 109
#define TELES_10 110

EDIT: Make sure you aren't using dialogid 101 t/m 110 in any other scripts or it will conflict
Reply
#5

Quote:
Originally Posted by [DDC]Delight
Посмотреть сообщение
Alright, try to place this ontop of your script:

#define TELES_1 101
#define TELES_2 102
#define TELES_3 103
#define TELES_4 104
#define TELES_5 105
#define TELES_6 106
#define TELES_7 107
#define TELES_8 108
#define TELES_9 109
#define TELES_10 110

EDIT: Make sure you aren't using dialogid 101 t/m 110 in any other scripts or it will conflict
i did worked......................thanks man................and can u explain me how you did that...............THANKS AGAIN...............And a bag full of RESPECT lol..............RESPECT........
Reply
#6

Enum:

ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);


Quote:
Originally Posted by ronaldoraul
Посмотреть сообщение
ShowPlayerDialog(playerid, TELES_1,DIALOG_STYLE_LIST, "Teleport ", "Cancel");
Your code needed an dialogid, so teles_1 is defined as an dialogid now ontop of the script.
Same as teles_2 untill teles_10 ^^

I hope I explained it enough :P
Reply
#7

Quote:
Originally Posted by [DDC]Delight
Посмотреть сообщение
Enum:

ShowPlayerDialog(playerid, dialogid, style, caption[], info[], button1[], button2[]);




Your code needed an dialogid, so teles_1 is defined as an dialogid now ontop of the script.

I hope I explained it enough :P
i tried it before but why did you used
teles_1 102 or something what that mean...........
Reply
#8

Quote:
Originally Posted by ronaldoraul
Посмотреть сообщение
i tried it before but why did you used
teles_1 102 or something what that mean...........
So it means TELES_1 = Dialogid 102

TELES_1 is what you used, I just added a random number to it :P
Could also use 201 etc.

It doesn't mather, as long as your not using 2 the same dialogid's
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)