shape1
shape2
shape3
shape4
shape7
shape8

eroor 01


Статус
Закрыто для дальнейших ответов.

pallatov

Освоившийся
Пользователь
05.08.2014
325
16
0
Прошу помочь 

lastPickupTime[playerid] = gettime();
SetPVarInt(playerid, "UseFill", 0);
if (!response) return 1;
new buyfill = strval(inputtext);
if (buyfill < 1 || buyfill > 200) return SendClientMessage(playerid, -1, "Некорректное число литров.");


new FillPrice[] = {36, 38, 39};
new FuelName[][10] = {"АИ-72", "АИ-80", "ДТ"};
if (Player[playerid][Money] < FillPrice[GetPVarInt(playerid, "SelectToplivo")] * buyfill)
{
SendClientMessage(playerid, -1, "Недостаточно денег!");
return 1;
}
Player[playerid][Money] - FillPrice[GetPVarInt(playerid, "SelectToplivo")] * buyfill);

SetPVarInt(playerid, "BuyFill", buyfill);

new str[128];
format(str, sizeof(str), "Вы успешно купили %dл (%s) за %d рублей.", buyfill, FuelName[GetPVarInt(playerid, "SelectToplivo")], FillPrice[GetPVarInt(playerid, "SelectToplivo")] * buyfill);
SendClientMessage(playerid, -1, str);

Ошибки

C:\Users\-000-\Desktop\gamemodes\new.pwn(2151) : error 001: expected token: ";", but found ")"
C:\Users\-000-\Desktop\gamemodes\new.pwn(2151) : error 029: invalid expression, assumed zero
C:\Users\-000-\Desktop\gamemodes\new.pwn(2151) : warning 215: expression has no effect

строка 

Player[playerid][Money] - FillPrice[GetPVarInt(playerid, "SelectToplivo")] * buyfill);


Дополнение к сообщению:
прошу удалить тему разобрался 

 
Статус
Закрыто для дальнейших ответов.