Üdv!
Egyik barátom átírt egy Autószalon scriptet, de hibákat kapott. Megnéztem én is és tényleg, valami olyasmit nyafog, hogy túl hosszú a sor...
Nem tudom pontosan mi lehet a hiba!
#include a_samp
#include zcmd
new autoszalon; // Az autószalon pickup változója
#define kocsivetel (1000) // A szalon dialogja
#define hiba 0xff0000AA // Hibaüzenet színe
#define autoszalondialog (1000) // Az autószalon dialogja
#define autoszalonpos -756.3760, 2754.3206, 47.1544 // Az autószalon helye
public OnFilterScriptInit()
{
autoszalon = CreatePickup(1239, 1, autoszalonpos, -1); // Autószalon pickupja
return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == autoszalon) ShowPlayerDialog (playerid, autoszalondialog, DIALOG_STYLE_LIST, \"{0dff00}Válassz egy jármûvet!\",\"{ff0000}Infernus-250000dollár\\n{ff0000}Sultan-200000dollár\\n{ff0000}NRG500-150000dollár\\n{ff0000}Phoenix-100000dollár\\n{ff0000}Landstalker-50000dollár\\n{ff0000}Bravura-30000dollár\\n{ff0000}Buffalo-200000dollár\\n{ff0000}Perenniel-20000dollár\\n{ff0000}Sentinel-60000dollár\\n{ff0000}Manana-40000dollár\\n{ff0000}Voodoo-35000dollár\\n{ff0000}Pony-35000dollár\\n{ff0000}Cheetah-135000dollár\\n{ff0000}Moonbeam-60000dollár\\n{ff0000}Esperanto-35000dollár\\n{ff0000}Washington-50000dollár\\n{ff0000}Premier-50000dollár\\n{ff0000}Banshee-100000dollár\\n{ff0000}Stallion-85000dollár\\n{ff0000}Turismo-200000dollár\\n{ff0000}Sabre-50000dollár\\n{ff0000}ZR350-150000dollár\\n{ff0000}Regina-20000dollár\\n{ff0000}Comet-100000dollár\\n{ff0000}Burrito-55000dollár\\n{ff0000}Rancher-85000dollár\\n{ff0000}Sandking-150000dollár\\n{ff0000}BlistaCompact-50000dollár\\n{ff0000}Mesa-35000dollár\\n{ff0000}SuperGT-200000dollár\\n{ff0000}Slamvan-45000dollár\\n{ff0000}Blade-45000dollár\\n{ff0000}Bullet-150000dollár\\n{ff0000}Clover-45000dollár\\n{ff0000}Tampa-45000dollár\\n{ff0000}Sunrise-40000dollár\\n{ff0000}Yosemite-65000dollár\\n{ff0000}Windsor-65000dollár\\n{ff0000}Jester-125000dollár\\n{ff0000}Elegy-100000dollár\\n{ff0000}Flash-75000dollár\\n{ff0000}Savanna-45000dollár\\n{ff0000}Huntley-55000dollár\\n{ff0000}Euros-45000dollár\\n{ff0000}Club-45000dollár\\n{ff0000}Alpha-45000dollár\\n{ff0000}FCR900-75000dollár\\n{ff0000}PCJ600-55000dollár\\n{ff0000}BF400-45000dollár\\n{ff0000}Wayfarer-80000dollár\\n{ff0000}Sanchez-55000dollár\\n{ff0000}Faggio-10000dollár\\n{ff0000}Freeway-60000dollár\",\"Kiválaszt\",\"Mégse\");
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == autoszalon)
{
if(response == 1)
{
switch(listitem)
{
case 0:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 250000) {CreateVehicle( 411, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy infernus-t \" ); GivePlayerMoney(playerid, -250000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 1:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 200000) {CreateVehicle( 560, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy sultan-t \" ); GivePlayerMoney(playerid, -200000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 2:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 150000) {CreateVehicle( 522, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy nrg-t \" ); GivePlayerMoney(playerid, -150000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 3:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 100000) {CreateVehicle( 603, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy phoenix-t\" ); GivePlayerMoney(playerid, -100000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 4:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 50000) {CreateVehicle( 400, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy landstalker-et\" ); GivePlayerMoney(playerid, -50000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 5:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
} if(GetPlayerMoney(playerid) >= 30000) {CreateVehicle( 401, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy bravura-t\" ); GivePlayerMoney(playerid, -30000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
case 6:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 150000) {CreateVehicle( 402, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy Buffalo-t\" ); GivePlayerMoney(playerid, -150000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 7:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 20000) {CreateVehicle( 404, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy perenniel-t \" ); GivePlayerMoney(playerid, -20000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 8:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 60000) {CreateVehicle( 405, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy sentinel-t \" ); GivePlayerMoney(playerid, -60000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 9:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 40000) {CreateVehicle( 410, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy manana-t\" ); GivePlayerMoney(playerid, -40000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 10:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 35000) {CreateVehicle( 412, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy voodoo-t\" ); GivePlayerMoney(playerid, -35000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 11:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 35000) {CreateVehicle( 413, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy pony-t\" ); GivePlayerMoney(playerid, -35000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 12:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 135000) {CreateVehicle( 415, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy cheetah-t\" ); GivePlayerMoney(playerid, -135000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 13:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 60000) {CreateVehicle( 418, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy moonbeam-t \" ); GivePlayerMoney(playerid, -60000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 14:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 35000) {CreateVehicle( 419, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy esperanto-t \" ); GivePlayerMoney(playerid, -35000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 15:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 50000) {CreateVehicle( 421, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy washington-t\" ); GivePlayerMoney(playerid, -50000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 16:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 50000) {CreateVehicle( 426, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy premier-t\" ); GivePlayerMoney(playerid, -50000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 17:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
} if(GetPlayerMoney(playerid) >= 100000) {CreateVehicle( 429, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy banshee-t\" ); GivePlayerMoney(playerid, -100000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
case 18:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 85000) {CreateVehicle( 439, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy stallion-t \" ); GivePlayerMoney(playerid, -85000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 19:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 200000) {CreateVehicle( 451, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy turismo-t \" ); GivePlayerMoney(playerid, -200000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 20:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 50000) {CreateVehicle( 475, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy sabre-t \" ); GivePlayerMoney(playerid, -50000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 21:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 150000) {CreateVehicle( 477, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy zr350-t\" ); GivePlayerMoney(playerid, -150000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 22:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 20000) {CreateVehicle( 479, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy regina-t\" ); GivePlayerMoney(playerid, -20000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 23:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 100000) {CreateVehicle( 480, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy comet-t\" ); GivePlayerMoney(playerid, -100000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 24:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 55000) {CreateVehicle( 482, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy burrito-t \" ); GivePlayerMoney(playerid, -55000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 25:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 85000) {CreateVehicle( 489, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy rancher-t \" ); GivePlayerMoney(playerid, -85000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 26:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 150000) {CreateVehicle( 495, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy sandking-t \" ); GivePlayerMoney(playerid, -150000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 27:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 50000) {CreateVehicle( 496, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy blista compact-t\" ); GivePlayerMoney(playerid, -50000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 28:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 35000) {CreateVehicle( 500, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy mesa-t\" ); GivePlayerMoney(playerid, -35000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 29:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
} if(GetPlayerMoney(playerid) >= 200000) {CreateVehicle( 506, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy SuperGT-t\" ); GivePlayerMoney(playerid, -200000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
case 30:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 45000) {CreateVehicle( 535, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy slamvan-t\" ); GivePlayerMoney(playerid, -45000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 31:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 45000) {CreateVehicle( 536, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy blade-t \" ); GivePlayerMoney(playerid, -45000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 32:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 150000) {CreateVehicle( 541, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy bullet-t \" ); GivePlayerMoney(playerid, -150000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 33:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 45000) {CreateVehicle( 542, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy clover-t\" ); GivePlayerMoney(playerid, -45000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 34:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 45000) {CreateVehicle( 549, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy tampa-t\" ); GivePlayerMoney(playerid, -45000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 35:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 40000) {CreateVehicle( 550, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy sunrise-t\" ); GivePlayerMoney(playerid, -40000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 36:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 65000) {CreateVehicle( 554, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy yosemite-t\" ); GivePlayerMoney(playerid, -65000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 37:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 65000) {CreateVehicle( 555, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy windsor-t \" ); GivePlayerMoney(playerid, -65000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 38:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 125000) {CreateVehicle( 559, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy jester-t \" ); GivePlayerMoney(playerid, -125000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 39:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 100000) {CreateVehicle( 562, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy elegy-t\" ); GivePlayerMoney(playerid, -100000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 40:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 75000) {CreateVehicle( 565, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy flash-t\" ); GivePlayerMoney(playerid, -75000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 41:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
} if(GetPlayerMoney(playerid) >= 45000) {CreateVehicle( 567, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy savanna-t\" ); GivePlayerMoney(playerid, -45000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
case 42:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 55000) {CreateVehicle( 579, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy huntley-t \" ); GivePlayerMoney(playerid, -55000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 43:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 45000) {CreateVehicle( 587, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy euros-t \" ); GivePlayerMoney(playerid, -45000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 44:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 45000) {CreateVehicle( 589, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy club-t \" ); GivePlayerMoney(playerid, -45000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 45:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 45000) {CreateVehicle( 602, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy alpha-t\" ); GivePlayerMoney(playerid, -45000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 46:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 75000) {CreateVehicle( 521, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy fcr900-t\" ); GivePlayerMoney(playerid, -75000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 47:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 55000) {CreateVehicle( 461, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy pcj600-t\" ); GivePlayerMoney(playerid, -55000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 48:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 45000) {CreateVehicle( 581, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy bf400-t \" ); GivePlayerMoney(playerid, -45000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 49:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 80000) {CreateVehicle( 586, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy wayfarer-t \" ); GivePlayerMoney(playerid, -80000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 50:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 55000) {CreateVehicle( 468, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy sanchez-t \" ); GivePlayerMoney(playerid, -55000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 51:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 10000) {CreateVehicle( 462, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy faggio-t\" ); GivePlayerMoney(playerid, -10000); } else{SendClientMessage(playerid, hiba, \"Nincs elég pénzed!!\" );}
}
case 52:
{
static Float: pX, Float: pY, Float: pZ;
GetPlayerPos( playerid, pX, pY, pZ );
if(GetPlayerMoney(playerid) >= 60000) {CreateVehicle( 463, pX + 2.0, pY + 2.0, pZ, 0.0, -1, -1, 1000 ); SendClientMessage(playerid, 0x38FF06FF, \"Vettél egy freeway-t\" ); GivePlayerMoney(playerid, -60000); } else{SendClientMessage(playe
else
{
SendClientMessage(playerid, 0xEB000FFF, \"Nem választottál jármûvet!\");
}
}
return 1;
}
Itt is lenne, a következõk a hibák:
autoszalon.pwn(18) : error 075: input line too long (after substitutions)
autoszalon.pwn(19) : error 037: invalid string (possibly non-terminated string)
autoszalon.pwn(19) : error 017: undefined symbol \"ff0000\"
autoszalon.pwn(19) : warning 217: loose indentation
autoszalon.pwn(19) : error 017: undefined symbol \"Infernus\"
autoszalon.pwn(19) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.