[Ajuda] Pickups nгo aparecem
#1

Bom, estou com um problema das pickup nгo carregar no servidor, elas nгo aparecerem no jogo.

PHP код:
stock CarregarPickup()
{
    
Create3DTextLabel("."COLOR_RED1031.6764,-1442.6636,13.55461501);
    
// Fixing pickups, 1st one doesn't show for some reason
    
new string[128];
    
CreatePickup(12391,-432.5431,1161.5724,3.5931); // Fishing
    
Create3DTextLabel("Fishing Spot\n{FFFF00}/fish to begin fishing"COLOR_RED, -432.5431,1161.5724,3.59313001);
    
CreatePickup(12391,634.7498,1680.4220,6.9922); // Trucker Job
    
Create3DTextLabel("Trucker Job\n{FFFF00}/join to get the job"COLOR_RED634.7498,1680.4220,6.99223001);
    
CreatePickup(1239132.1669,923.9841,23.5956);// Weapons Dealer Job
    
Create3DTextLabel("Weapons Dealer Job\n{FFFF00}/join to get the job"COLOR_RED32.1669,923.9841,23.59561501);
    
CreatePickup(12391111.4068,1112.3735,13.6094); // Weapons Smuggler Job
    
Create3DTextLabel("Weapons Smuggler Job\n{FFFF00}/join to get the job"COLOR_RED111.4068,1112.3735,13.60941501);
    
CreatePickup(3481108.6315,1020.7019,13.6094); // Materials Pickup
    
Create3DTextLabel("Materials Pickup\n{FFFF00}/getmats to get packages"COLOR_RED108.6315,1020.7019,13.60941501);
    
CreatePickup(12791, -455.6552,613.8401,16.7458); // Materials Dropoff
    
Create3DTextLabel("Materials Dropoff\n{FFFF00}/dropmats to get materials"COLOR_RED, -455.6552,613.8401,16.74581501);
    
CreatePickup(12391, -90.9628,1118.2490,20.7860); // Mechanic Job
    
Create3DTextLabel("Mechanic Job\n{FFFF00}/join to get the job"COLOR_RED, -90.9628,1118.2490,20.78601501);
    
CreatePickup(123911380.8300,-1088.7698,27.3844); // Lawyer Job
    
Create3DTextLabel("Lawyer Job\n{FFFF00}/join to get the job"COLOR_RED1380.8300,-1088.7698,27.38441501);
    
CreatePickup(123912178.5518,-1660.4418,14.9644); // Drugs Dealer Job
    
Create3DTextLabel("Drugs Dealer Job\n{FFFF00}/join to get the job\n/dropweed to deliver weed"COLOR_RED2178.5518,-1660.4418,14.96441501);
    
CreatePickup(123912354.4045,-1169.8337,28.0339); // Drugs Smuggler Job
    
Create3DTextLabel("Drugs Smuggler Job\n{FFFF00}/join to get the job\n/dropcocaine to deliver cocaine"COLOR_RED2354.4045,-1169.8337,28.03391501);
    
CreatePickup(123912941.2471,-2053.3892,3.5480); // Weed Packages Pickup
    
Create3DTextLabel("Weed Packages Pickup\n{FFFF00}/getweed to get packages"COLOR_RED2941.2471,-2053.3892,3.54801501);
    
CreatePickup(123912941.2471,-2050.1772,3.5480); // cocaine Packages Pickup
    
Create3DTextLabel("Cocaine Packages Pickup\n{FFFF00}/getcocaine to get packages"COLOR_RED2941.2471,-2050.1772,3.54801501);
    
CreatePickup(12791323.0012,1118.5720,1083.8828); // Actual Weed Pickup
    
format(stringsizeof(string), "Weed Pickup\n{FFFF00}/buyweed to get weed\nAvailable Stock: %d/2000"Weed);
    
WeedText CreateDynamic3DTextLabel(stringCOLOR_RED323.0012,1118.5720,1083.882815);
    
CreatePickup(127912345.3992,-1185.6423,1027.9766); // Actual cocaine Pickup
    
format(stringsizeof(string), "cocaine Pickup\n{FFFF00}/buycocaine to get cocaine\nAvailable Stock: %d/2000"cocaine);
    
cocaineText CreateDynamic3DTextLabel(stringCOLOR_RED2345.3992,-1185.6423,1027.976615);
    
CreatePickup(12391774.1115,7.7268,1000.7078); // Bodyguard Job
    
Create3DTextLabel("Bodyguard Job\n{FFFF00}/join to get the job"COLOR_RED774.1115,7.7268,1000.70781501);
    
CreatePickup(12391, -101.4596,1156.9485,19.7422); // gym
    
Create3DTextLabel("{FFFFFF}Bone County Gym\nType {DF0101}/enter {FFFFFF}to go inside"COLOR_RED, -101.4596,1156.9485,19.74223001);
    
CreatePickup(123912352.0059,-1170.1798,28.0511); // Cocaine Lab
    
Create3DTextLabel("{FFFFFF}Cocaine Lab\nType {DF0101}/enter {FFFFFF}to go inside"COLOR_RED2352.0059,-1170.1798,28.05113001);
    
CreatePickup(123912165.950927,-1671.177368,15.073158); // Drug House
    
Create3DTextLabel("{FFFFFF}Drug House\nType {DF0101}/enter {FFFFFF}to go inside"COLOR_RED2165.950927,-1671.177368,15.0731583001);
    
CreatePickup(12391, -207.8826,1119.1702,20.4297); // Cityhall
    
Create3DTextLabel("{FFFFFF}Bone County City Hall\nType {DF0101}/enter {FFFFFF}to go inside"COLOR_RED, -207.8826,1119.1702,20.42973001);
    
CreatePickup(124711456.5190,-1539.1852,13.5641); // LSPD
    
Create3DTextLabel("Departamento de Polнcia de Los Santos\n'To protect and to serve'\nAperte 'F' para entrar."COLOR_WHITE1456.5190,-1539.1852,13.56411001);
    
CreatePickup(13182246.2436,109.0822,1003.2188, -1); // Saнda LSPD
    
Create3DTextLabel("Prisгo Estadual de San Andreas\nAperte 'F' para entrar"COLOR_WHITE1456.5190,-1539.1852,13.56411001);
    
CreatePickup(131821456.5190,-1539.1852,13.5641, -1); // Saнda LSPD
Create3DTextLabel("Armбrio de equipamentos\n/armario"COLOR_WHITE266.6783,108.4476,1004.61721001);
    
CreatePickup(12421266.6783,108.4476,1004.6172); // Saнda LSPD
//Posto Entrada
    
Create3DTextLabel("Posto de Gasolina - Conveniкncia\n/entrar"COLOR_WHITE, -232.8879,1213.5933,19.74221001);
    
CreatePickup(12391, -232.8879,1213.5933,19.7422);
    
//Posto Saida
    
Create3DTextLabel("Posto de Gasolina - Conveniкncia\n/sair"COLOR_WHITE, -232.8879,1216.4451,19.74221001);
    
//CreatePickup(1239, 1, -232.8879,1216.4451,19.7422);
    /*Create3DTextLabel("Federal Bureau Of Invesitgation\n{FFFF00}/enter at this spot.", COLOR_RED, 1456.5190,-1539.1852,13.5641,90.0567, 10, 0, 1);*/
    
CreatePickup(12391663.2349,1737.9799,6.7428); // Trucker Pickup
    
Create3DTextLabel("Packages Pickup\n{FFFF00}/loadpackages to get crates"COLOR_RED663.2349,1737.9799,6.74283001);
    
CreatePickup(123912253.0139,2771.7834,10.8203); // Trucker Dropoff
    
format(stringsizeof(string), "Packages Dropoff\n{FFFF00}/deliverpackages to deliver crates\nAvailable Products: %d/10000"Products);
    
ProductsText CreateDynamic3DTextLabel(stringCOLOR_RED2253.0139,2771.7834,10.820330);
    
CreatePickup(12391, -135.0201,1116.2260,20.1966); // Dealership
    
Create3DTextLabel("Concessionбria de Veiculos\nUse {FFFF00}/comprarcarro{FFFFFF} para comprar seu veiculo"COLOR_RED, -135.0201,1116.2260,20.19661501);
    
CreatePickup(123911490.2968,1305.7004,1093.2964); // DMV Inside
    
Create3DTextLabel("Department of Motor Vehicles\n{FFFF00}/getlic to start your drivers license test"COLOR_RED1490.2968,1305.7004,1093.29641501);
    
Create3DTextLabel("Door\n{FFFF00}/exit or press F\nto get out"COLOR_RED1494.4541,1303.5806,1093.28911501);
    
CreatePickup(12391352.1964,173.3516,1025.7891); // Government Lockers
    
Create3DTextLabel("Бrmario do Governo\n{FFFF00}/locker to grab your weapons"COLOR_RED352.1964,173.3516,1025.78911501);
    
//paintball text
    
Create3DTextLabel("{FFFFFF}PaintBall Arena\n{A80000}/paintball [join] to join the paintball",0x0000FFFF1310.1110,-1368.5656,14.51778620,0,1);
    
CreatePickup(12391, -179.5009,1133.0728,19.7422); // Bank
    
Create3DTextLabel("{FFFFFF}Banco de Evolution\nAperte {DF0101}F {FFFFFF}para entrar"COLOR_RED, -179.5009,1133.0728,19.74223001);
    
Create3DTextLabel("Posto de Gasolina - Conveniкncia\n/entrar"COLOR_WHITE2045.9163,-1913.1510,13.54691001);//DMV
    
CreatePickup(123912045.9163,-1913.1510,13.5469);//DMV
    
CreatePickup(131311310.1110,-1368.5656,13.517786); // paintball pickup
    //Cityhall
    
CreatePickup(12391361.8299,173.3985,1008.3828); // Telecom Company
    
Create3DTextLabel("{FF6347}Service: {00FF00}/phchange\n{FF6347}Service: {00FF00}/namechange\n{FF6347}Service: {00FF00}/agechange\n{FF6347}Service: {00FF00}/sexchange"COLOR_LIGHTRED361.8299,173.3985,1008.3828+0.91501);
    
//tune shop
    
CreatePickup(131812117.5835,-1153.0809,24.2201);
    
Create3DTextLabel("{FFFFFF}Vehicle Modification Shop\n{A80000}/upgradecar to open the menu",0x0000FFFF2117.5835,-1153.0809,24.220120,0,1);
    
//
//    CreatePickup(1239, 1, 1043.5070,1010.2909,11.0000,308.6297); // NG
    
Create3DTextLabel("Bone County National Prison\n{FFFF00}/enter at this spot."COLOR_RED1043.5070,1010.2909,11.00003001);
    
//ATM text
    
Create3DTextLabel("ATM\n{FFFF00}/awithdraw /adeposit"COLOR_RED2228.383789, -1714.00524914.1456341501);
    
Create3DTextLabel("ATM\n{FFFF00}/awithdraw /adeposit"COLOR_RED1928.707275, -1773.48901314.1768701501);
    
Create3DTextLabel("ATM\n{FFFF00}/awithdraw /adeposit"COLOR_RED1102.388793, -1428.85485816.3468721501);
    
//Bank withdraw
    
Create3DTextLabel("Bank\n{FFFF00}/withdraw , /deposit"COLOR_RED2228.4658,1651.1661,961.75961501);
    
Create3DTextLabel("Bank\n{FFFF00}/withdraw , /deposit"COLOR_RED2227.0308,1655.4127,961.75311501);
    
//
    //LSPD
    
Create3DTextLabel("LSPD Locker room\n{FFFF00}/locker"COLOR_RED255.071,77.074,1003.2111501);
    
Create3DTextLabel("BCFMD Locker room\n{FFFF00}/locker"COLOR_RED1252.2406,321.0259,-11.74221501);
    
Create3DTextLabel("Liquor Store\n{FFFFFF}/store"COLOR_GREEN2271.6699,-1742.9114,13.54691501);
    
Create3DTextLabel("LSPD Accessories\n{FFFF00}/policetoys"COLOR_RED253.2935,76.9233,1003.64061501);
    
Create3DTextLabel("NONE PC\n{FFFF00}"COLOR_RED2243.8555,-1680.0319,4.09391501);
    
Create3DTextLabel("FBI Locker room\n{FFFF00}/locker"COLOR_RED387.3867,-1162.4469,1223.6930501);
    
Create3DTextLabel("FBI Elevator\n{FFFF00}/elevator"COLOR_RED397.4298,-1167.1226,1223.6667501);
    
Create3DTextLabel("FBI Elevator\n{FFFF00}/elevator"COLOR_RED1665.8561,-1650.3574,76.2188501);
    
Create3DTextLabel("FBI Elevator Bottom Floor\n{FFFF00}/elevator"COLOR_RED389.5572,-1162.8600,1227.8639501);
    
Create3DTextLabel("FBI Elevator Rooftop\n{FFFF00}/elevator"COLOR_RED393.3255,-1162.8689,1227.8639501);
    
//BCFMD Enter
    
CreatePickup(123911498.6595,-2182.5081,14.1682); //BCFMD
    
Create3DTextLabel("{FFFFFF}Bone County Fire & Medic Department\nType {DF0101}/enter {FFFFFF}to go inside"COLOR_RED1498.6595,-2182.5081,14.16823001);
    
//News Enter
    
CreatePickup(12391, -311.2929,1303.4773,53.6643); //news
    
Create3DTextLabel("{FFFFFF}Bone County News Team\nType {DF0101}/enter {FFFFFF}to go inside"COLOR_RED, -311.2929,1303.4773,53.66433001);
    
// Universty Enter
    
CreatePickup(123911219.3258,-1812.1523,16.5938); //news
    
CreatePickup(12391765.9518,15.2308,1000.69911); // Boxer Job
    
Create3DTextLabel("Boxer Job\n{FFFF00}/join to get the job"COLOR_RED765.9518,15.2308,1000.69911511);
    
CreatePickup(12391756.3295,5.6053,1000.69881); // Gym /train
    
Create3DTextLabel("Fighting Styles\n{FFFF00}/train to change your fighting style"COLOR_RED756.3295,5.6053,1000.69881501);
    
Create3DTextLabel("Boxer 1\n{FFFF00}/bid 1 to place a bid on this boxer"COLOR_RED763.1202,2.4917,1001.59422510);
    
Create3DTextLabel("Boxer 2\n{FFFF00}/bid 2 to place a bid on this boxer"COLOR_RED758.5969,-1.9768,1001.59422510);
    
Parachute CreatePickup(37111544.0267,-1353.1768,329.4745); // Parachute
    // Bank Robbery // INT:83, VW:8473
    
Create3DTextLabel("Bank Vault\n{FFFF00}/startrobbery to open the vault door"COLOR_RED2242.0234,1632.7185,961.75312584730);
    
// News Vault
    
Create3DTextLabel("News Agency Vault\n{FFFF00}/newsvault to check the money inside\n/vaultwithdraw to withdraw money"COLOR_RED1202.8289,-762.5840,1073.18191501);
    
//Pilot
    //Car Jacker
    //CreatePickup(1239, 1, 562.3151,-1293.1195,17.2482); // CARJACKER Job
    //Create3DTextLabel("Car Jacker Job\n{FFFF00}/join to get the job", COLOR_RED, 562.3151,-1293.1195,17.2482, 15, 0, 1);
    /*
    403.8016,-2088.7976,7.8359 ; Fish1
    398.7358,-2088.7939,7.8359 ; Fish2
    396.1771,-2088.7976,7.8359 ; Fish3
    391.0683,-2088.7974,7.8359 ; Fish4
    383.4282,-2088.7969,7.8359 ; Fish5
    374.9623,-2088.7974,7.8359 ; Fish6
    369.8990,-2088.7976,7.8359 ; Fish7
    367.3003,-2088.7981,7.8359 ; Fish8
    362.1855,-2088.7974,7.8359 ; Fish9
    354.5370,-2088.7983,7.8359 ; Fish10
    */
    
print("Static pickups loaded.");

Reply
#2

vc ta chamando essa stock na ongamemodinit? pq parece esta certo o codigo
tente tambem declarar o world no final. \/
https://sampwiki.blast.hk/wiki/CreatePickup
Reply
#3

pawn Код:
public OnGameModeInit
{
     CarregarPickup(playerid);
    }
    return 1;
}
Reply
#4

Quote:
Originally Posted by DannielCooper
Посмотреть сообщение
pawn Код:
public OnGameModeInit
{
     CarregarPickup(playerid);
    }
    return 1;
}
Errado

pawn Код:
public OnGameModeInit () {

    CarregarPickup () ;
    return true ;
}
Reply
#5

Pior cara ta tudo certo no GameModeInt


PHP код:
public OnGameModeInit()
{
    
CarregarPickup();
    return 
true;

Tem mais coisas no OnGameModeInit xD
Reply
#6

Consegui arrumar era a posiзгo dele no OnGameModeInit ;S botei ele no inicio pra ver se arrumava e arrumou xD
Reply
#7

Uma stock nгo precisa ter "return 1" no final ?

#EDIT:
Nгo vi que jб tinha resolviddo..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)