C:\Users\User\Desktop\No Name\gamemodes\new.pwn(26094) : error 035: argument type mismatch (argument 2)
if(strcmp(cmd, "/sellveh", true) == 0)
{
new cars = GetPlayerVehicleID(playerid);
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GRAD2, "{BEBEBE}[ ! ] Вы должны быть в автомобиле!");
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SCM(playerid, COLOR_WHITE, "• {ffcf00}[ Подсказка ] {ffffff}: /selcarid [id] [cena]");
return 1;
}
new playa;
new price;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
price = strval(tmp);
if(!strcmp(CarInfo[GetRealID(cars)][cOwner],Names(playerid),true))
{
gpbi[playa] = cars;
GetPlayerOption[playa] = playerid;
GetPlayerTransfer[playa] = price;
format(string, "\
{FFFF00}%s Предложил продать свой автомобиль\n\n\
{ffffff}(Авто: %s, Цена: %d){FFFF00}Вы согласны?",
Names(playerid),VehiclesName[CarInfo[cars][cMod]-400],price);
ShowPlayerDialog(playa, 924, DIALOG_STYLE_MSGBOX, "Покупка авто", string, "Купить", "Отмена");
SendClientMessage(playerid, COLOR_WHITE, "{BEBEBE}[ ! ] Вы отправили предложение о покупке!");
CarInfo[GetRealID(cars)][cPrice] = price;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{BEBEBE}[ ! ] Это не ваш автомобиль!!");
}
return true;
}