Problem
#9

pawn Код:
if (newstate == PLAYER_STATE_DRIVER && oldstate == PLAYER_STATE_ONFOOT)
    {
        new veh = GetVehicleModel(GetPlayerVehicleID(playerid));
        if(veh == 520)
        {
            if (GetPlayerMoney(playerid) < 20000)
            {
                 SendClientMessage(playerid, 0xFFFFFF, "You need 20.000$ to enter in the Hydra.");
                 RemovePlayerFromVehicle(playerid);
            }
            else if(GetPlayerMoney(playerid) > 20000)
            {
                GivePlayerMoney(playerid,-20000);
                SendClientMessage(playerid, 0xFFFFFF, "Enjoy your Hydra.");
            }
        }
        if(veh == 425)
        {
            if (GetPlayerMoney(playerid) < 35000)
            {
                 SendClientMessage(playerid, 0xFFFFFF, "You need 35.000$ to enter in the Hunter.");
                 RemovePlayerFromVehicle(playerid);
            }
            else if(GetPlayerMoney(playerid) > 35000)
            {
                GivePlayerMoney(playerid,-35000);
                SendClientMessage(playerid, 0xFFFFFF, "Enjoy your Hunter.");
            }
        }
       if(veh == 432)
        {
            if (GetPlayerMoney(playerid) < 15000)
            {
                 SendClientMessage(playerid, 0xFFFFFF, "You need 15.000$ to enter in the Rhino.");
                 RemovePlayerFromVehicle(playerid);
            }
            else if(GetPlayerMoney(playerid) > 15000)
            {
                GivePlayerMoney(playerid,-15000);
                SendClientMessage(playerid, 0xFFFFFF, "Enjoy your Rhino.");
            }
        }
  return 1;
}

you forgot the ";"
Reply


Messages In This Thread
Problem - by Face9000 - 18.12.2010, 18:04
Re: Problem - by blackwave - 18.12.2010, 18:08
Re: Problem - by Face9000 - 18.12.2010, 18:10
Re: Problem - by Benjo - 18.12.2010, 18:11
Re: Problem - by blackwave - 18.12.2010, 18:12
Re: Problem - by Face9000 - 18.12.2010, 18:18
Re: Problem - by blackwave - 18.12.2010, 18:24
Re: Problem - by Face9000 - 18.12.2010, 18:29
Re: Problem - by blackwave - 18.12.2010, 18:32
Re: Problem - by Face9000 - 18.12.2010, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)