14.01.2015, 22:42
try to use a switch instead
pawn Код:
if(PlayerToPoint(3.0, playerid,1629.6888,-1903.3663,13.5530))
{
switch(vehicle)
{
case 445: vehicleprice = 25000;
case 542: vehicleprice = 130000;
case 466: vehicleprice = 60000;
case 504: vehicleprice = 45000;
case 507: vehicleprice = 50000;
case 51: vehicleprice = 70000;
case 527: vehicleprice = 75000;
case 543: vehicleprice = 79000;
case 567: vehicleprice = 80000;
default: return SendClientMessage(playerid,COLOR_GREY,"Nosotros no vendemos ese modelo.");
}
}