30.10.2010, 09:38
(
Последний раз редактировалось Rafa; 30.10.2010 в 12:12.
)
PROBLEM SOLVED THANKS TO MadeMan
THANKS MadeMan....
THANKS MadeMan....
if(dialogid == hotel100)//im guessing thats the dialog id
{
if(response)
{
switch(listitem)
{
case 0:
{
//do something
}
case 1:
{
//blahblah
}
}
}
else SendClientMessage(playerid, 0xFF0000FF, "You cancelled.");
}
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(389) : error 017: undefined symbol "SCM"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(411) : error 017: undefined symbol "SCM"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(416) : error 017: undefined symbol "SCM"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(421) : error 017: undefined symbol "SCM"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(566) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(796) : error 001: expected token: ":", but found ";"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(796) : error 036: empty statement
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(800) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(800) : error 017: undefined symbol "PosX"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(801) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(805) : error 014: invalid statement; not in switch
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(805) : warning 215: expression has no effect
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(805) : error 001: expected token: ";", but found ":"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(805) : error 029: invalid expression, assumed zero
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(805) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
14 Errors.
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == dweap)
{
if(response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, RED, "You have Canceled.");
return 1;
}
case 1:
{
GivePlayerWeapon(playerid, 34, 5000);
SendClientMessage(playerid, RED, "You have picked Sniper.");
}
case 2:
{
GivePlayerWeapon(playerid, 29, 5000);
SendClientMessage(playerid, RED, "You have picked MP5.");
}
case 3:
{
GivePlayerWeapon(playerid, 32, 6000);
SendClientMessage(playerid, RED, "You have picked Tec9.");
}
case 4:
{
GivePlayerWeapon(playerid, 31, 5000);
SendClientMessage(playerid, RED, "You have picked M4");
return 1;
}
case 5:
{
GivePlayerWeapon(playerid, 26, 5000);
SendClientMessage(playerid, RED, "You have picked Sawn Off.");
return 1;
}
case 6:
{
GivePlayerWeapon(playerid, 24, 5000);
SendClientMessage(playerid, RED, "You have picked Deagle.");
return 1;
}
case 7:
{
SetPlayerArmour(playerid, 100.0);
SendClientMessage(playerid, RED, "You have picked Armor.");
return 1;
}
}
}
else SendClientMessage(playerid,0xff0000FF, "cancelled");
}
if(dialogid == hotel100)
{
if(response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, RED, "You have canceled.");
return 1;
}
case 1:
{
//new Playername[20], Ownername[20]; // Create Playername and Ownername, the variables :)
//GetPlayerName(playerid,Playername,sizeof(Playername)); // Gets the players name
//format(Ownername,sizeof(Ownername),dini_Get("RoomOwners","Room1Owner")); // Gets the owners name
//if(strcmp(Ownername,Playername,true) == 0)
if(GetPlayerMoney(playerid) <= 1500) return SendClientMessage(playerid, 0xFFFFFF, "You can't to get this room (1500$)");
GivePlayerMoney(playerid, -1500);
SetPlayerPos(playerid, 2236.048828125, -1158.7952880859, 1029.796875);
//SetTimer("You has 10hours to leavef this room.", 600000, false);
SendClientMessage(playerid, RED, "You have choosen the hotel room 1 and u get key for the gate.");
hotelgate2key[playerid] = 0;
hotelgate1key[playerid] = 1;
return 1;
}
case 2:
{
// new Playername[20], Ownername[20]; // Create Playername and Ownername, the variables :)
// GetPlayerName(playerid,Playername,sizeof(Playername)); // Gets the players name
// format(Ownername,sizeof(Ownername),dini_Get("RoomOwners","Room1Owner")); // Gets the owners name
// if(strcmp(Ownername,Playername,true) == 0)
if(GetPlayerMoney(playerid) <= 1450) return SendClientMessage(playerid, 0xFFFFFF, "You can't to get this room (1450$)");
GivePlayerMoney(playerid, -1450);
SetPlayerPos(playerid, 2247.3625488281, -1162.2573242188, 1029.796875);
//SetTimer("You has 10hours to leavef this room.", 600000, false);
SendClientMessage(playerid, RED, "You have choosen the hotel room 2 and u get key for the gate");
hotelgate1key[playerid] = 0;
hotelgate2key[playerid] = 1;
return 1;
}
case 3:
{
// new Playername[20], Ownername[20]; // Create Playername and Ownername, the variables :)
// GetPlayerName(playerid,Playername,sizeof(Playername)); // Gets the players name
// format(Ownername,sizeof(Ownername),dini_Get("RoomOwners","Room1Owner")); // Gets the owners name
// if(strcmp(Ownername,Playername,true) == 0)
if(GetPlayerMoney(playerid) <= 1500) return SendClientMessage(playerid, 0xFFFFFF, "You can't to get this room (1450$)");
GivePlayerMoney(playerid, -1500);
SetPlayerPos(playerid, 2235.0493164063, -1168.6553955078, 1029.796875);
//SetTimer("You has 10hours to leavef this room.", 600000, false);
SendClientMessage(playerid, RED, "You have choosen the hotel room 3 and u get key for the gate.");
hotelgate1key[playerid] = 0;
hotelgate2key[playerid] = 0;
hotelgate3key[playerid] = 1;
return 1;
}
}
}
else SendClientMessage(playerid,0xff0000FF, "cancelled");
}
if(dialogid == car10)
{
if(response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, RED, "You have Canceled.");
return 1;
}
case 1;
{
if(GetPlayerMoney(playerid) <= 40000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Sultan (40000$)");
GivePlayerMoney(playerid, -40000);
CreatedCar = CreateVehicle(560,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Sultan Please drive Carefull!");
return 1;
}
case 2:
{
if(GetPlayerMoney(playerid) <= 100000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Infernus (100000$)");
GivePlayerMoney(playerid, -100000);
CreatedCar = CreateVehicle(411,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Infernus Please drive Carefull!");
return 1;
}
case 3:
{
if(GetPlayerMoney(playerid) <= 80000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Cheetah (80000$)");
GivePlayerMoney(playerid, -80000);
CreatedCar = CreateVehicle(415,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Cheetah Please drive Carefull!!!");
return 1;
}
case 4:
{
if(GetPlayerMoney(playerid) <= 85000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Turismo (85000$)");
GivePlayerMoney(playerid, -85000);
CreatedCar = CreateVehicle(451,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Turismo Please drive Carefull!!!");
return 1;
}
case 5:
{
if(GetPlayerMoney(playerid) <= 120000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy NRG-500 (120000$)");
GivePlayerMoney(playerid, -120000);
CreatedCar = CreateVehicle(522,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought NRG-500 Please drive Carefull!!!");
return 1;
}
case 6:
{
if(GetPlayerMoney(playerid) <= 110000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy FCR-900 (110000$)");
GivePlayerMoney(playerid, -110000);
CreatedCar = CreateVehicle(521,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought FCR-900 Please drive Carefull!!!");
return 1;
}
case 7:
{
if(GetPlayerMoney(playerid) <= 80000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Bullet (80000$)");
GivePlayerMoney(playerid, -80000);
CreatedCar = CreateVehicle(541,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Bullet Please drive Carefull!!!!");
return 1;
}
case 8:
{
if(GetPlayerMoney(playerid) <= 80000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Jester (80000$)");
GivePlayerMoney(playerid, -80000);
CreatedCar = CreateVehicle(559,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Jester Please drive Carefull!!!!");
return 1;
}
case 9:
{
if(GetPlayerMoney(playerid) <= 80000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Elegy (80000$)");
GivePlayerMoney(playerid, -80000);
CreatedCar = CreateVehicle(562,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Elegy Please drive Carefull!!!!");
return 1;
}
case 10:
{
if(GetPlayerMoney(playerid) <= 45000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Flash (45000$)");
GivePlayerMoney(playerid, -45000);
CreatedCar = CreateVehicle(565,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Flash Please drive Carefull!!!!");
return 1;
}
}
}
else SendClientMessage(playerid,0xff0000FF, "cancelled");
}
return 1;
}
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(389) : error 017: undefined symbol "SCM"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(411) : error 017: undefined symbol "SCM"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(416) : error 017: undefined symbol "SCM"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(421) : error 017: undefined symbol "SCM"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(566) : error 017: undefined symbol "sscanf"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(801) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(801) : error 017: undefined symbol "PosX"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(802) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(810) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(810) : error 017: undefined symbol "PosX"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(811) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(819) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(819) : error 017: undefined symbol "PosX"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(820) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(828) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(828) : error 017: undefined symbol "PosX"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(829) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(837) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(837) : error 017: undefined symbol "PosX"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(838) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(846) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(846) : error 017: undefined symbol "PosX"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(847) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(855) : error 017: undefined symbol "CreatedCar"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(855) : error 017: undefined symbol "PosX"
C:\Documents and Settings\Vlado\Desktop\sa-mp\gamemodes\Mace.pwn(856) : error 017: undefined symbol "CreatedCar"
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
26 Errors.
{
if(dialogid == dweap)
{
if(response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, RED, "You have Canceled.");
return 1;
}
case 1:
{
GivePlayerWeapon(playerid, 34, 5000);
SendClientMessage(playerid, RED, "You have picked Sniper.");
}
case 2:
{
GivePlayerWeapon(playerid, 29, 5000);
SendClientMessage(playerid, RED, "You have picked MP5.");
}
case 3:
{
GivePlayerWeapon(playerid, 32, 6000);
SendClientMessage(playerid, RED, "You have picked Tec9.");
}
case 4:
{
GivePlayerWeapon(playerid, 31, 5000);
SendClientMessage(playerid, RED, "You have picked M4");
return 1;
}
case 5:
{
GivePlayerWeapon(playerid, 26, 5000);
SendClientMessage(playerid, RED, "You have picked Sawn Off.");
return 1;
}
case 6:
{
GivePlayerWeapon(playerid, 24, 5000);
SendClientMessage(playerid, RED, "You have picked Deagle.");
return 1;
}
case 7:
{
SetPlayerArmour(playerid, 100.0);
SendClientMessage(playerid, RED, "You have picked Armor.");
return 1;
}
}
}
else SendClientMessage(playerid,0xff0000FF, "cancelled");
}
if(dialogid == hotel100)
{
if(response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, RED, "You have canceled.");
return 1;
}
case 1:
{
//new Playername[20], Ownername[20]; // Create Playername and Ownername, the variables :)
//GetPlayerName(playerid,Playername,sizeof(Playername)); // Gets the players name
//format(Ownername,sizeof(Ownername),dini_Get("RoomOwners","Room1Owner")); // Gets the owners name
//if(strcmp(Ownername,Playername,true) == 0)
if(GetPlayerMoney(playerid) <= 1500) return SendClientMessage(playerid, 0xFFFFFF, "You can't to get this room (1500$)");
GivePlayerMoney(playerid, -1500);
SetPlayerPos(playerid, 2236.048828125, -1158.7952880859, 1029.796875);
//SetTimer("You has 10hours to leavef this room.", 600000, false);
SendClientMessage(playerid, RED, "You have choosen the hotel room 1 and u get key for the gate.");
hotelgate2key[playerid] = 0;
hotelgate1key[playerid] = 1;
return 1;
}
case 2:
{
// new Playername[20], Ownername[20]; // Create Playername and Ownername, the variables :)
// GetPlayerName(playerid,Playername,sizeof(Playername)); // Gets the players name
// format(Ownername,sizeof(Ownername),dini_Get("RoomOwners","Room1Owner")); // Gets the owners name
// if(strcmp(Ownername,Playername,true) == 0)
if(GetPlayerMoney(playerid) <= 1450) return SendClientMessage(playerid, 0xFFFFFF, "You can't to get this room (1450$)");
GivePlayerMoney(playerid, -1450);
SetPlayerPos(playerid, 2247.3625488281, -1162.2573242188, 1029.796875);
//SetTimer("You has 10hours to leavef this room.", 600000, false);
SendClientMessage(playerid, RED, "You have choosen the hotel room 2 and u get key for the gate");
hotelgate1key[playerid] = 0;
hotelgate2key[playerid] = 1;
return 1;
}
case 3:
{
// new Playername[20], Ownername[20]; // Create Playername and Ownername, the variables :)
// GetPlayerName(playerid,Playername,sizeof(Playername)); // Gets the players name
// format(Ownername,sizeof(Ownername),dini_Get("RoomOwners","Room1Owner")); // Gets the owners name
// if(strcmp(Ownername,Playername,true) == 0)
if(GetPlayerMoney(playerid) <= 1500) return SendClientMessage(playerid, 0xFFFFFF, "You can't to get this room (1450$)");
GivePlayerMoney(playerid, -1500);
SetPlayerPos(playerid, 2235.0493164063, -1168.6553955078, 1029.796875);
//SetTimer("You has 10hours to leavef this room.", 600000, false);
SendClientMessage(playerid, RED, "You have choosen the hotel room 3 and u get key for the gate.");
hotelgate1key[playerid] = 0;
hotelgate2key[playerid] = 0;
hotelgate3key[playerid] = 1;
return 1;
}
}
}
else SendClientMessage(playerid,0xff0000FF, "cancelled");
}
if(dialogid == car10)
{
if(response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid, RED, "You have Canceled.");
return 1;
}
case 1;
{
if(GetPlayerMoney(playerid) <= 40000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Sultan (40000$)");
GivePlayerMoney(playerid, -40000);
CreatedCar = CreateVehicle(560,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Sultan Please drive Carefull!");
return 1;
}
case 2:
{
if(GetPlayerMoney(playerid) <= 100000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Infernus (100000$)");
GivePlayerMoney(playerid, -100000);
CreatedCar = CreateVehicle(411,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Infernus Please drive Carefull!");
return 1;
}
case 3:
{
if(GetPlayerMoney(playerid) <= 80000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Cheetah (80000$)");
GivePlayerMoney(playerid, -80000);
CreatedCar = CreateVehicle(415,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Cheetah Please drive Carefull!!!");
return 1;
}
case 4:
{
if(GetPlayerMoney(playerid) <= 85000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Turismo (85000$)");
GivePlayerMoney(playerid, -85000);
CreatedCar = CreateVehicle(451,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Turismo Please drive Carefull!!!");
return 1;
}
case 5:
{
if(GetPlayerMoney(playerid) <= 120000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy NRG-500 (120000$)");
GivePlayerMoney(playerid, -120000);
CreatedCar = CreateVehicle(522,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought NRG-500 Please drive Carefull!!!");
return 1;
}
case 6:
{
if(GetPlayerMoney(playerid) <= 110000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy FCR-900 (110000$)");
GivePlayerMoney(playerid, -110000);
CreatedCar = CreateVehicle(521,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought FCR-900 Please drive Carefull!!!");
return 1;
}
case 7:
{
if(GetPlayerMoney(playerid) <= 80000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Bullet (80000$)");
GivePlayerMoney(playerid, -80000);
CreatedCar = CreateVehicle(541,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Bullet Please drive Carefull!!!!");
return 1;
}
case 8:
{
if(GetPlayerMoney(playerid) <= 80000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Jester (80000$)");
GivePlayerMoney(playerid, -80000);
CreatedCar = CreateVehicle(559,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Jester Please drive Carefull!!!!");
return 1;
}
case 9:
{
if(GetPlayerMoney(playerid) <= 80000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Elegy (80000$)");
GivePlayerMoney(playerid, -80000);
CreatedCar = CreateVehicle(562,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Elegy Please drive Carefull!!!!");
return 1;
}
case 10:
{
if(GetPlayerMoney(playerid) <= 45000) return SendClientMessage(playerid, 0xFFFFFF, "You can't afford to buy Flash (45000$)");
GivePlayerMoney(playerid, -45000);
CreatedCar = CreateVehicle(565,PosX,PosY,PosZ,0,-1,-1,-1);
PutPlayerInVehicle(playerid,CreatedCar,0);
SendClientMessage(playerid, 0x00FF00, "You have bought Flash Please drive Carefull!!!!");
return 1;
}
}
}
else SendClientMessage(playerid,0xff0000FF, "cancelled");
}
return 1;
}
pawn Код:
|