Dimon_Joker
Новичок
PHP:
case 1111:
{
if(!response)
RemovePlayerFromVehicle(playerid);
if(player_info[playerid][MONEY] < 180) return SCM(playerid, COLOR_LIGHTGREY, "У вас не хватает денег");
new busmoney;
switch(player_info[playerid][MONEY])
{
case 0: busmoney -= 180;
}
GiveMoney(playerid, busmoney);
new string[20];
format(string, sizeof(string), "~r~%d$", playerid, busmoney);
GameTextForPlayer(playerid, string, 1000, 1);
}
теперь почему когда жму в диалоге "нет" он все равно снимает деньги 180 баксов и вылазит из автобуса!
код:
PHP:
case 1111:
{
if(!response)
RemovePlayerFromVehicle(playerid);
if(player_info[playerid][MONEY] < 180) return SCM(playerid, COLOR_LIGHTGREY, "У вас не хватает денег");
//GiveMoney(playerid, -180);
new money = -180;
GiveMoney(playerid, -money);
new string[20];
format(string, sizeof(string), "~r~%d$", money);
//format(string, sizeof(string), "~r~-180$", playerid, -180);
GameTextForPlayer(playerid, string, 1000, 1);
}
Последнее редактирование:
