Денис!
Новичок
выскакивает во такая ошибка. как исправить дам плюсик.
C:\Users\Администратор\Desktop\так себе\gamemodes\FL.pwn(19293) : error 017: undefined symbol "OnPropUpdate"
сама команда
C:\Users\Администратор\Desktop\так себе\gamemodes\FL.pwn(19293) : error 017: undefined symbol "OnPropUpdate"
сама команда
PHP:
if(strcmp(cmd, "/sellmats", true) == 0)
{
new cashmade;
new tmpcar;
if(IsPlayerConnected(playerid))
{
tmpcar = GetPlayerVehicleID(playerid);
if(!IsAMatsCar(tmpcar))
{
SendClientMessage(playerid,COLOR_GREY," * Вы не в фургоне Rifa!");
return 1;
}
if(MatHaul[tmpcar-rifacar[0]][mLoad] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " * Фургон пуст, вернитесь в доки, чтобы купить компоненты!");
format(string, sizeof(string), " * Компоненты материалов: %d/%d.", MatHaul[tmpcar-rifacar[0]][mLoad],MatHaul[tmpcar-rifacar[0]][mCapasity]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
return 1;
}
if (PlayerToPoint(5, playerid,MatInfo[0][mtEntranceX], MatInfo[0][mtEntranceY], MatInfo[0][mtEntranceZ]))
{
//printf("Found House :%d",i);
for(new l = MatHaul[tmpcar-rifacar[0]][mLoad]; l > 0; l--)
{
if(MatInfo[0][mtProducts] == MatInfo[0][mtMaxProducts])
{
GameTextForPlayer(playerid, "~r~Our stores are full", 5000, 1);
format(string, sizeof(string), " * Вы продали компоненты за $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), " * Компоненты материалов: %d/%d.", MatHaul[tmpcar-rifacar[0]][mLoad],MatHaul[tmpcar-rifacar[0]][mCapasity]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
if(MatInfo[0][mtPriceProd] > MatInfo[0][mtTill])
{
GameTextForPlayer(playerid, "~r~We Cant Afford The Deal", 5000, 1);
format(string, sizeof(string), " * Вы продали компоненты за $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), " * Компоненты материалов: %d/%d.", MatHaul[tmpcar-rifacar[0]][mLoad],MatHaul[tmpcar-rifacar[0]][mCapasity]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
MatHaul[tmpcar-rifacar[0]][mLoad]--;
MatInfo[0][mtProducts]++;
cashmade = cashmade+MatInfo[0][mtPriceProd];
GivePlayerMoney(playerid,MatInfo[0][mtPriceProd]);
if(MatHaul[tmpcar-rifacar[0]][mLoad] == 0)
{
GameTextForPlayer(playerid, "~r~Truck is empty, return to the stock house", 5000, 1);
format(string, sizeof(string), " * Вы продали компоненты за $%d.", cashmade);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
format(string, sizeof(string), " * Компоненты материалов: %d/%d.", MatHaul[tmpcar-rifacar[0]][mLoad],MatHaul[tmpcar-rifacar[0]][mCapasity]);
SendClientMessage(playerid, TEAM_GROVE_COLOR, string);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
return 1;
}
}
OnPropUpdate();
return 1;
}
else
{
SendClientMessage(playerid,COLOR_GREY," * Вы не на фабрике San Fierro!");
return 1;
}
}
}
