01.03.2013, 22:55
I got this
When I compile I get his
pawn Код:
if(newkeys & KEY_SPRINT)
{
if(GetPVarInt(playerid, "UsingBuyMenu") > 0)
{// Purchased a vehicle
new ID = GetPVarInt(playerid, "BuySelection");
switch (GetPVarInt(playerid, "UsingBuyMenu"))
{
case 1:
{
if(PlayerInfo[playerid][pCash] >= NormalVehicleInfo[ID][carprice])
{
//if(PlayerInfo[playerid][pConnectTime] < NormalVehicleInfo[ID][carlevel])
{
//SendClientMessage(playerid,COLOR_RED,"[ERROR]: You're time in Los Santos is too low to get this vehicle.");
return 1;
}
PlayerInfo[playerid][pUsingSkin] = 2;
TogglePlayerSpectating(playerid, 0);
DestroyVehicle(GetPVarInt(playerid, "VehicleID"));
SetPVarInt(playerid, "UsingBuyMenu", 0);
TextDrawHideForPlayer(playerid,VehicleBuy[playerid]);
SetPVarInt(playerid, "VehicleType", 1);
}
else
{
SendClientMessage(playerid,COLOR_RED,"[ERROR]: You cannot afford this vehicle.");
}
}
}
}
}
Код:
RP.pwn(8559) : warning 225: unreachable code