[12:55:42] playerid:1 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:2 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:3 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:4 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:5 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:6 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:7 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:8 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:9 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:10 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:11 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:12 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:13 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:14 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:15 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:16 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:17 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:18 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:19 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:20 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:21 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:22 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
...........................................................
[12:55:42] playerid:457 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:458 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:459 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:460 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:461 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:462 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:463 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:464 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:465 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:466 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:467 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:468 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:469 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:470 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:471 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:472 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:473 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:474 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:475 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:476 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:477 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:478 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:479 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:480 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:481 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:482 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:483 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:484 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:485 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:486 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:487 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:488 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:489 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:490 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:491 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:492 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:493 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:494 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:495 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:496 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:497 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:498 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
[12:55:42] playerid:499 Error(UAS_GivePlayerMoney):Incorrect Value,MAX=999999999,MIN=-999999999
public FillupEx(playerid, count)
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(!IsAtGasStation(playerid)) return SendClientMessage(playerid,COLOR_GREY,"Вы уехали с заправки!");
new VID = GetPlayerVehicleID(playerid), cash = count * SBizzInfo[3][sbEntranceCost], string[256];
Gas[VID] += count;
SBizzInfo[3][sbTill] += cash;
TogglePlayerControllable(playerid, 1);
ExtortionSBiz(3, cash);
if(IsACopCar(VID) || IsAnFbiCar(VID) || IsAnAmbulance(VID) || IsNgCar(VID) || IsAGovernmentCar(VID) || IsAHspdCar(VID))
{
format(string, 256, "* Автомобиль заправлен за: $%d.", cash);//cash
GameTextForPlayer(playerid, "~w~Government has paid for a gas.", 5000, 1);
SafePlayerMoney(i, - cash);
}
else
{
format(string, 256, "* Автомобиль заправлен за: $%d.", cash);//cash
SafePlayerMoney(i, - cash);
}
SendClientMessage(playerid, COLOR_WHITE, string);
}
return 1;
}
public FillupEx(playerid, count)
{
if(!IsAtGasStation(playerid))
{
SendClientMessage(playerid,COLOR_GREY,"Вы уехали с заправки!");
return 0;
}
new VID = GetPlayerVehicleID(playerid), cash = count * SBizzInfo[3][sbEntranceCost], string[64];
Gas[VID] += count;
SBizzInfo[3][sbTill] += cash;
TogglePlayerControllable(playerid, 1);
ExtortionSBiz(3, cash);
if(IsACopCar(VID) || IsAnFbiCar(VID) || IsAnAmbulance(VID) || IsNgCar(VID) || IsAGovernmentCar(VID) || IsAHspdCar(VID))
{
GameTextForPlayer(playerid, "~w~Government has paid for a gas.", 5000, 1);
}
format(string, 64, "* Автомобиль заправлен за: $%d.", cash);//cash
SafePlayerMoney(playerid, - cash);
SendClientMessage(playerid, COLOR_WHITE, string);
return 1;
}
if(strcmp(cmd, "/fill", true) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_GREY,"Вы не в машине!");
if(!IsAtGasStation(playerid)) return SendClientMessage(playerid,COLOR_GREY,"Вы не на заправке!");
tmp = strtok(cmdtext, idx);
new var = strval(tmp);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Команда: - /fill [кол-во]");
if(Gas[GetPlayerVehicleID(playerid)] > 99) return GameTextForPlayer(playerid,"~r~~n~~n~~n~~n~~n~~n~~n~~n~~n~Gas can is full",2000,3);
if(var + Gas[GetPlayerVehicleID(playerid)] > 100) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Слишком много!");
if(var < 0) return SendClientMessage(playerid, COLOR_LIGHTBLUE, "Слишком мало!");
if(UAS_GetValPlayerMoney(playerid) < var * SBizzInfo[3][sbEntranceCost])
{
new ts[256];
format(ts, 256, "У вас нехватает денег, кужно %d$", var * SBizzInfo[3][sbEntranceCost]);
return SendClientMessage(playerid, COLOR_LIGHTBLUE, ts);
}
TogglePlayerControllable(playerid, 0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "* %s заправляет автомобиль", sendername);
ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
GameTextForPlayer(playerid,"~w~~n~~n~~n~~n~~n~~n~~n~~n~~n~Re-Fueling Vehicle, please wait",2000,3);
SetTimerEx("FillupEx", RefuelWait, 0, "ii", playerid, var);
return 1;
}
SetTimerEx("Pochinka",30000,false, "i", playerid);
SetTimerEx("DelTuning",30000,false, "i", playerid);
RepairVehicle(v);//ремонт
SetVehicleHealth(v, 1000.0);//ремонт
TuneCar[v][mod1]=0;
TuneCar[v][mod2]=0;
TuneCar[v][mod3]=0;
TuneCar[v][mod4]=0;
TuneCar[v][mod5]=0;
//и тд до mod17
d(decimal) - десятичные числа
i(integer) - тип переменной рекомендуется первое. Шестнадцатиричные числа ты тоже хранишь в переменных типа integer но передаются они почему-то как x, так что если ты передаешь числа, то и указывай числа! |